#include "mod_perl.h" /* * *********** WARNING ************** * This file generated by ModPerl::Code/0.01 * Any changes made here will be lost * *********************************** * 01: lib/ModPerl/Code.pm:733 * 02: lib/ModPerl/Code.pm:759 * 03: Makefile.PL:383 * 04: Makefile.PL:96 */ const char *modperl_cmd_process_connection_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvPROCESS_CONNECTION(scfg)) { return apr_pstrcat(parms->pool, "PerlProcessConnectionHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_connection [MP_PROCESS_CONNECTION_HANDLER]), arg, parms->pool); } const char *modperl_cmd_child_init_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvCHILD_INIT(scfg)) { return apr_pstrcat(parms->pool, "PerlChildInitHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_process [MP_CHILD_INIT_HANDLER]), arg, parms->pool); } const char *modperl_cmd_child_exit_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvCHILD_EXIT(scfg)) { return apr_pstrcat(parms->pool, "PerlChildExitHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_process [MP_CHILD_EXIT_HANDLER]), arg, parms->pool); } const char *modperl_cmd_pre_connection_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvPRE_CONNECTION(scfg)) { return apr_pstrcat(parms->pool, "PerlPreConnectionHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_pre_connection [MP_PRE_CONNECTION_HANDLER]), arg, parms->pool); } const char *modperl_cmd_header_parser_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvHEADER_PARSER(scfg)) { return apr_pstrcat(parms->pool, "PerlHeaderParserHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_HEADER_PARSER_HANDLER]), arg, parms->pool); } const char *modperl_cmd_access_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvACCESS(scfg)) { return apr_pstrcat(parms->pool, "PerlAccessHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_ACCESS_HANDLER]), arg, parms->pool); } const char *modperl_cmd_authen_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvAUTHEN(scfg)) { return apr_pstrcat(parms->pool, "PerlAuthenHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_AUTHEN_HANDLER]), arg, parms->pool); } const char *modperl_cmd_authz_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvAUTHZ(scfg)) { return apr_pstrcat(parms->pool, "PerlAuthzHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_AUTHZ_HANDLER]), arg, parms->pool); } const char *modperl_cmd_type_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvTYPE(scfg)) { return apr_pstrcat(parms->pool, "PerlTypeHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_TYPE_HANDLER]), arg, parms->pool); } const char *modperl_cmd_fixup_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvFIXUP(scfg)) { return apr_pstrcat(parms->pool, "PerlFixupHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_FIXUP_HANDLER]), arg, parms->pool); } const char *modperl_cmd_response_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvRESPONSE(scfg)) { return apr_pstrcat(parms->pool, "PerlResponseHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_RESPONSE_HANDLER]), arg, parms->pool); } const char *modperl_cmd_log_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvLOG(scfg)) { return apr_pstrcat(parms->pool, "PerlLogHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_LOG_HANDLER]), arg, parms->pool); } const char *modperl_cmd_cleanup_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvCLEANUP(scfg)) { return apr_pstrcat(parms->pool, "PerlCleanupHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(dcfg->handlers_per_dir [MP_CLEANUP_HANDLER]), arg, parms->pool); } const char *modperl_cmd_input_filter_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvINPUT_FILTER(scfg)) { return apr_pstrcat(parms->pool, "PerlInputFilterHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_filter_handlers(&(dcfg->handlers_per_dir [MP_INPUT_FILTER_HANDLER]), arg, parms->pool); } const char *modperl_cmd_output_filter_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); modperl_config_dir_t *dcfg = (modperl_config_dir_t *)dummy; if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvOUTPUT_FILTER(scfg)) { return apr_pstrcat(parms->pool, "PerlOutputFilterHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_filter_handlers(&(dcfg->handlers_per_dir [MP_OUTPUT_FILTER_HANDLER]), arg, parms->pool); } const char *modperl_cmd_post_read_request_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvPOST_READ_REQUEST(scfg)) { return apr_pstrcat(parms->pool, "PerlPostReadRequestHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_per_srv [MP_POST_READ_REQUEST_HANDLER]), arg, parms->pool); } const char *modperl_cmd_trans_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvTRANS(scfg)) { return apr_pstrcat(parms->pool, "PerlTransHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_per_srv [MP_TRANS_HANDLER]), arg, parms->pool); } const char *modperl_cmd_map_to_storage_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvMAP_TO_STORAGE(scfg)) { return apr_pstrcat(parms->pool, "PerlMapToStorageHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_per_srv [MP_MAP_TO_STORAGE_HANDLER]), arg, parms->pool); } const char *modperl_cmd_open_logs_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvOPEN_LOGS(scfg)) { return apr_pstrcat(parms->pool, "PerlOpenLogsHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_files [MP_OPEN_LOGS_HANDLER]), arg, parms->pool); } const char *modperl_cmd_post_config_handlers(cmd_parms *parms, void *dummy, const char *arg) { MP_dSCFG(parms->server); if (!MpSrvENABLE(scfg)) { return apr_pstrcat(parms->pool, "Perl is disabled for server ", parms->server->server_hostname, NULL); } if (!MpSrvPOST_CONFIG(scfg)) { return apr_pstrcat(parms->pool, "PerlPostConfigHandler is disabled for server ", parms->server->server_hostname, NULL); } MP_TRACE_d(MP_FUNC, "push @%s, %s", parms->cmd->name, arg); return modperl_cmd_push_handlers(&(scfg->handlers_files [MP_POST_CONFIG_HANDLER]), arg, parms->pool); }