ngobjweb_module.c (opengroupware-5.5rc2) | : | ngobjweb_module.c (opengroupware-5.5rc3) | ||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
License for more details. | License for more details. | |||
You should have received a copy of the GNU Lesser General Public | You should have received a copy of the GNU Lesser General Public | |||
License along with SOPE; see the file COPYING. If not, write to the | License along with SOPE; see the file COPYING. If not, write to the | |||
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA | Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |||
02111-1307, USA. | 02111-1307, USA. | |||
*/ | */ | |||
#include "common.h" | #include "common.h" | |||
static command_rec ngobjweb_cmds[] = { | static const command_rec ngobjweb_cmds[] = { | |||
{ | AP_INIT_TAKE1( | |||
"SetSNSPort", | "SetSNSPort", | |||
ngobjweb_set_sns_port, | ngobjweb_set_sns_port, | |||
NULL, | NULL, | |||
OR_FILEINFO, | OR_FILEINFO, | |||
TAKE1, | ||||
"the path of the Unix domain address to use (eg /tmp/.snsd)" | "the path of the Unix domain address to use (eg /tmp/.snsd)" | |||
}, | ), | |||
{ | AP_INIT_TAKE1( | |||
"SetAppPort", | "SetAppPort", | |||
ngobjweb_set_app_port, | ngobjweb_set_app_port, | |||
NULL, | NULL, | |||
OR_FILEINFO, | OR_FILEINFO, | |||
TAKE1, | ||||
"the path of the Unix domain address to use (eg /tmp/.snsd)" | "the path of the Unix domain address to use (eg /tmp/.snsd)" | |||
}, | ), | |||
{ | AP_INIT_TAKE1( | |||
"SetAppPrefix", | "SetAppPrefix", | |||
ngobjweb_set_app_prefix, | ngobjweb_set_app_prefix, | |||
NULL, | NULL, | |||
OR_FILEINFO, | OR_FILEINFO, | |||
TAKE1, | ||||
"any prefix that is before the app name (eg /MyDir with /MyDir/MyApp.woa)" | "any prefix that is before the app name (eg /MyDir with /MyDir/MyApp.woa)" | |||
}, | ), | |||
{ | AP_INIT_TAKE1( | |||
"SNSUseHTTP", | "SNSUseHTTP", | |||
ngobjweb_set_use_http, | ngobjweb_set_use_http, | |||
NULL, | NULL, | |||
OR_FILEINFO, | OR_FILEINFO, | |||
0, | ||||
"use HTTP protocol to query snsd (on,off) ?" | "use HTTP protocol to query snsd (on,off) ?" | |||
}, | ), | |||
{ NULL } | {NULL} | |||
}; | }; | |||
#ifdef AP_VERSION_1 | ||||
static handler_rec ngobjweb_handlers[] = { | ||||
{ "ngobjweb-adaptor", ngobjweb_handler }, | ||||
{ NULL } | ||||
}; | ||||
static void ngobjweb_init(server_rec *_server, pool *_pool) { | ||||
} | ||||
module ngobjweb_module = { | ||||
STANDARD_MODULE_STUFF, | ||||
ngobjweb_init, /* initializer */ | ||||
ngobjweb_create_dir_config, /* dir config creater */ | ||||
ngobjweb_merge_dir_configs, /* dir merger --- default is to override */ | ||||
NULL, /* server config */ | ||||
NULL, /* merge server config */ | ||||
ngobjweb_cmds, /* command table */ | ||||
ngobjweb_handlers, /* handlers */ | ||||
NULL, /* filename translation */ | ||||
NULL, /* check_user_id */ | ||||
NULL, /* check auth */ | ||||
NULL, /* check access */ | ||||
NULL, /* type_checker */ | ||||
NULL, /* fixups */ | ||||
NULL, /* logger */ | ||||
NULL /* header parser */ | ||||
}; | ||||
#else | ||||
static void ngobjweb_register_hooks(apr_pool_t *p) { | static void ngobjweb_register_hooks(apr_pool_t *p) { | |||
ap_hook_handler(ngobjweb_handler, NULL, NULL, APR_HOOK_LAST); | ap_hook_handler(ngobjweb_handler, NULL, NULL, APR_HOOK_LAST); | |||
} | } | |||
module AP_MODULE_DECLARE_DATA ngobjweb_module = { | module AP_MODULE_DECLARE_DATA ngobjweb_module = { | |||
STANDARD20_MODULE_STUFF, | STANDARD20_MODULE_STUFF, | |||
ngobjweb_create_dir_config, /* create per-directory config structures */ | ngobjweb_create_dir_config, /* create per-directory config structures */ | |||
ngobjweb_merge_dir_configs, /* merge per-directory config structures */ | ngobjweb_merge_dir_configs, /* merge per-directory config structures */ | |||
NULL, /* create per-server config structures */ | NULL, /* create per-server config structures */ | |||
NULL, /* merge per-server config structures */ | NULL, /* merge per-server config structures */ | |||
ngobjweb_cmds, /* command handlers */ | ngobjweb_cmds, /* command handlers */ | |||
ngobjweb_register_hooks /* register hooks */ | ngobjweb_register_hooks /* register hooks */ | |||
}; | }; | |||
#endif | ||||
End of changes. 11 change blocks. | ||||
42 lines changed or deleted | 10 lines changed or added |