samples/c/0/mod_webdav.c
int mod_webdav_plugin_init(plugin *p) {
	p->version     = LIGHTTPD_VERSION_ID;
	p->name        = buffer_init_string("webdav");
	
	p->init        = mod_webdav_init;
	p->handle_uri_clean  = mod_webdav_uri_handler;
	p->handle_physical   = mod_webdav_subrequest_handler;
	p->set_defaults  = mod_webdav_set_defaults;
	p->cleanup     = mod_webdav_free;
	
	p->data        = NULL;
	
	return 0;
}
/* this function is called at dlopen() time and inits the callbacks */
this function is called at dlopen() time and inits the callbacks
this function is called at dlopen () time and inits the callbacks
int mod_webdav_plugin_init(plugin *p) {
	p->version     = LIGHTTPD_VERSION_ID;
	p->name        = buffer_init_string("webdav");
	p->init        = mod_webdav_init;
	p->handle_uri_clean  = mod_webdav_uri_handler;
	p->handle_physical   = mod_webdav_subrequest_handler;
	p->set_defaults  = mod_webdav_set_defaults;
	p->cleanup     = mod_webdav_free;
	p->data        = NULL;
	return 0;
}
int mod_webdav_plugin_init ( plugin * p ) { p -> version = LIGHTTPD_VERSION_ID ; p -> name = buffer_init_string ( " " ) ; p -> init = mod_webdav_init ; p -> handle_uri_clean = mod_webdav_uri_handler ; p -> handle_physical = mod_webdav_subrequest_handler ; p -> set_defaults = mod_webdav_set_defaults ; p -> cleanup = mod_webdav_free ; p -> data = NULL ; return 0 ; }
this function is called at dlopen() time and inits the callbacks
this function is called at dlopen () time and inits the callbacks