Changeset 97

Show
Ignore:
Timestamp:
02/04/06 23:24:13 (3 years ago)
Author:
conrad
Message:

split cgi funcs into a separate cgi.c file

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fastphoto/trunk/src/Makefile.am

    r96 r97  
    66bin_PROGRAMS = fastphoto 
    77 
    8 noinst_HEADERS = resize.h 
     8noinst_HEADERS = cgi.h resize.h 
    99 
    10 fastphoto_SOURCES = fastphoto.c resize.c 
     10fastphoto_SOURCES = fastphoto.c cgi.c resize.c 
    1111fastphoto_LDADD = $(EPEG_LIBS) 
  • fastphoto/trunk/src/fastphoto.c

    r96 r97  
    22#include <stdlib.h> 
    33 
     4#include "cgi.h" 
    45#include "resize.h" 
    56 
    67#define CONTENT_TYPE_JPEG "Content-Type: image/jpeg\n\n" 
    7  
    8 int 
    9 content_type_jpeg () 
    10 { 
    11     return puts (CONTENT_TYPE_JPEG); 
    12 } 
    13  
    14 int 
    15 blat (char * filename) 
    16 { 
    17 } 
    188 
    199int 
     
    3121  resize (infile, outfile, 128, 128); 
    3222 
    33   blat (outfile); 
    34  
    3523  return 0; 
    3624}