Changeset 424
- Timestamp:
- 07/06/2005 04:36:46 PM (3 years ago)
- Files:
-
- 1 modified
-
branches/lighttpd-1.3.x/src/mod_cml.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.3.x/src/mod_cml.c
r421 r424 19 19 20 20 /* init the plugin data */ 21 INIT_FUNC(mod_c ache_init) {21 INIT_FUNC(mod_cml_init) { 22 22 plugin_data *p; 23 23 … … 30 30 31 31 /* detroy the plugin data */ 32 FREE_FUNC(mod_c ache_free) {32 FREE_FUNC(mod_cml_free) { 33 33 plugin_data *p = p_d; 34 34 … … 58 58 /* handle plugin config and check values */ 59 59 60 SETDEFAULTS_FUNC(mod_c ache_set_defaults) {60 SETDEFAULTS_FUNC(mod_cml_set_defaults) { 61 61 plugin_data *p = p_d; 62 62 size_t i = 0; … … 91 91 #define PATCH(x) \ 92 92 p->conf.x = s->x; 93 static int mod_c ache_patch_connection(server *srv, connection *con, plugin_data *p, const char *stage, size_t stage_len) {93 static int mod_cml_patch_connection(server *srv, connection *con, plugin_data *p, const char *stage, size_t stage_len) { 94 94 size_t i, j; 95 95 … … 118 118 } 119 119 120 static int mod_c ache_setup_connection(server *srv, connection *con, plugin_data *p) {120 static int mod_cml_setup_connection(server *srv, connection *con, plugin_data *p) { 121 121 plugin_config *s = p->config_storage[0]; 122 122 UNUSED(srv); … … 253 253 254 254 255 URIHANDLER_FUNC(mod_c ache_is_handled) {255 URIHANDLER_FUNC(mod_cml_is_handled) { 256 256 int ct_len, s_len; 257 257 buffer *b; … … 263 263 if (fn->used == 0) return HANDLER_ERROR; 264 264 265 mod_c ache_setup_connection(srv, con, p);265 mod_cml_setup_connection(srv, con, p); 266 266 for (i = 0; i < srv->config_patches->used; i++) { 267 267 buffer *patch = srv->config_patches->ptr[i]; 268 268 269 mod_c ache_patch_connection(srv, con, p, CONST_BUF_LEN(patch));269 mod_cml_patch_connection(srv, con, p, CONST_BUF_LEN(patch)); 270 270 } 271 271 … … 314 314 } 315 315 316 int mod_c ache_plugin_init(plugin *p) {316 int mod_cml_plugin_init(plugin *p) { 317 317 p->version = LIGHTTPD_VERSION_ID; 318 318 p->name = buffer_init_string("cache"); 319 319 320 p->init = mod_c ache_init;321 p->cleanup = mod_c ache_free;322 p->set_defaults = mod_c ache_set_defaults;323 324 p->handle_subrequest_start = mod_c ache_is_handled;320 p->init = mod_cml_init; 321 p->cleanup = mod_cml_free; 322 p->set_defaults = mod_cml_set_defaults; 323 324 p->handle_subrequest_start = mod_cml_is_handled; 325 325 326 326 p->data = NULL;

