Changeset 138
- Timestamp:
- 02/15/06 20:36:37 (3 years ago)
- Files:
-
- fastphoto/trunk/src/cgi.c (modified) (2 diffs)
- fastphoto/trunk/src/cgi.h (modified) (1 diff)
- fastphoto/trunk/src/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
fastphoto/trunk/src/cgi.c
r137 r138 105 105 106 106 int 107 cgi_send (photo_t * photo)107 cgi_send_photo (photo_t * photo) 108 108 { 109 109 header_content_length (photo->size); … … 112 112 photo_put (photo); 113 113 114 return 1;114 return 0; 115 115 } 116 117 int 118 cgi_send (fastphoto_t * params) 119 { 120 if (params->out.name) { 121 cgi_send_photo (¶ms->out); 122 } else { 123 header_content_length ((off_t)params->data_size); 124 header_end(); 125 126 send_memory (params); 127 } 128 129 return 0; 130 } fastphoto/trunk/src/cgi.h
r136 r138 5 5 6 6 int cgi_init (fastphoto_t * params); 7 int cgi_send (photo_t * photo); 7 int cgi_send_photo (photo_t * photo); 8 int cgi_send (fastphoto_t * params); 8 9 9 10 size_t send_memory (fastphoto_t * params); fastphoto/trunk/src/main.c
r136 r138 171 171 172 172 if (!err) { 173 if (!params.out.name) { 173 if (cgi) { 174 cgi_send (¶ms); 175 } else if (!params.out.name) { 174 176 send_memory (¶ms); 175 } else if (cgi) {176 cgi_send (¶ms.out);177 177 } 178 178 }
