Changeset 164
- Timestamp:
- 03/01/06 13:10:26 (3 years ago)
- Files:
-
- fastphoto/trunk/src/Makefile.am (modified) (1 diff)
- fastphoto/trunk/src/cache.c (modified) (1 diff)
- fastphoto/trunk/src/cgi.c (modified) (2 diffs)
- fastphoto/trunk/src/fastphoto.h (modified) (2 diffs)
- fastphoto/trunk/src/read_config.c (added)
- fastphoto/trunk/src/read_config.h (added)
- fastphoto/trunk/src/xini.c (added)
- fastphoto/trunk/src/xini.h (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fastphoto/trunk/src/Makefile.am
r161 r164 10 10 TESTS = httpdate_test cgi_test 11 11 12 noinst_HEADERS = fastphoto.h alloc_snprintf.h cache.h cgi.h cmd.h header.h httpdate.h memory.h photo.h resize.h tests.h12 noinst_HEADERS = fastphoto.h alloc_snprintf.h cache.h cgi.h cmd.h read_config.h header.h httpdate.h memory.h photo.h resize.h tests.h xini.h 13 13 14 fastphoto_SOURCES = main.c alloc_snprintf.c cache.c cgi.c cmd.c header.c httpdate.c memory.c photo.c resize.c14 fastphoto_SOURCES = main.c alloc_snprintf.c cache.c cgi.c cmd.c read_config.c header.c httpdate.c memory.c photo.c resize.c xini.c 15 15 fastphoto_LDADD = $(EPEG_LIBS) 16 16 17 17 httpdate_test_SOURCES = httpdate.c httpdate_test.c 18 18 19 cgi_test_SOURCES = cgi_test.c cgi.c alloc_snprintf.c cache.c httpdate.c header.c photo.c resize.c memory.c19 cgi_test_SOURCES = cgi_test.c cgi.c alloc_snprintf.c cache.c read_config.c httpdate.c header.c photo.c resize.c memory.c xini.c 20 20 cgi_test_LDADD = $(EPEG_LIBS) fastphoto/trunk/src/cache.c
r159 r164 63 63 cache_init (fastphoto_t * params, char * path_info) 64 64 { 65 char * cachedir = FASTPHOTO_DEFAULT_CACHEDIR;65 char * cachedir = params->config.cachedir; 66 66 char * cachefile, * c; 67 67 int cached; fastphoto/trunk/src/cgi.c
r159 r164 11 11 #include "memory.h" 12 12 #include "photo.h" 13 #include "read_config.h" 13 14 #include "resize.h" 14 15 … … 152 153 header_content_type_jpeg (); 153 154 155 config_init (params); 156 154 157 parse_query (params, query_string); 155 158 fastphoto/trunk/src/fastphoto.h
r149 r164 10 10 11 11 typedef struct fastphoto_s fastphoto_t; 12 typedef struct config_s config_t; 12 13 typedef struct photo_s photo_t; 14 15 struct config_s { 16 char * cachedir; 17 }; 13 18 14 19 struct photo_s { … … 19 24 20 25 struct fastphoto_s { 26 config_t config; 27 21 28 photo_t in; 22 29 photo_t out;
