Changeset 106

Show
Ignore:
Timestamp:
02/05/06 07:06:25 (3 years ago)
Author:
conrad
Message:

add cache.c

Files:

Legend:

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

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

    r105 r106  
    44 
    55#include "fastphoto.h" 
     6#include "cache.h" 
    67 
    78#define CONTENT_TYPE_JPEG "Content-Type: image/jpeg\n" 
     
    7475 
    7576  params->infile = path_translated; 
    76   params->outfile = "/tmp/cache.jpg"
     77  params->outfile = NULL
    7778  params->x = 0; 
    7879  params->y = 0; 
    7980 
    8081  parse_query (params, query_string); 
     82 
     83  cache_init (params); 
    8184 
    8285  return 1;