static void register_hooks(apr_pool_t * p) { ap_hook_pre_config(init_ftpd_dbi_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(init_ftpd_dbi, NULL, NULL, APR_HOOK_MIDDLE); ap_register_provider(p, FTPD_PROVIDER_GROUP, "dbi", "0", &ftpd_dbi_provider); }
/* Implements the #register_hooks method of Apache's #module vtable. */ static void register_hooks(apr_pool_t *pconf) { ap_hook_pre_config(init_dso, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_post_config(init, NULL, NULL, APR_HOOK_MIDDLE); /* our provider */ dav_register_provider(pconf, "svn", &provider); /* input filter to read MERGE bodies. */ ap_register_input_filter("SVN-MERGE", merge_xml_in_filter, NULL, AP_FTYPE_RESOURCE); ap_hook_insert_filter(merge_xml_filter_insert, NULL, NULL, APR_HOOK_MIDDLE); /* general request handler for methods which mod_dav DECLINEs. */ ap_hook_handler(dav_svn__handler, NULL, NULL, APR_HOOK_LAST); /* live property handling */ dav_hook_gather_propsets(dav_svn__gather_propsets, NULL, NULL, APR_HOOK_MIDDLE); dav_hook_find_liveprop(dav_svn__find_liveprop, NULL, NULL, APR_HOOK_MIDDLE); dav_hook_insert_all_liveprops(dav_svn__insert_all_liveprops, NULL, NULL, APR_HOOK_MIDDLE); dav_register_liveprop_group(pconf, &dav_svn__liveprop_group); /* Proxy / mirroring filters and fixups */ ap_register_output_filter("LocationRewrite", dav_svn__location_header_filter, NULL, AP_FTYPE_CONTENT_SET); ap_register_output_filter("ReposRewrite", dav_svn__location_body_filter, NULL, AP_FTYPE_CONTENT_SET); ap_register_input_filter("IncomingRewrite", dav_svn__location_in_filter, NULL, AP_FTYPE_CONTENT_SET); ap_hook_fixups(dav_svn__proxy_request_fixup, NULL, NULL, APR_HOOK_MIDDLE); }
static void psgi_register_hooks(apr_pool_t *p) { ap_hook_pre_config(psgi_pre_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(psgi_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init(psgi_child_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_handler(psgi_handler, NULL, NULL, APR_HOOK_MIDDLE); }
static void caucho_register_hooks(apr_pool_t *p) { ap_hook_pre_config(prefork_pre_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(prefork_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_handler(cse_dispatch, NULL, NULL, APR_HOOK_FIRST); }
static void ssl_register_hooks(apr_pool_t *p) { /* ssl_hook_ReadReq needs to use the BrowserMatch settings so must * run after mod_setenvif's post_read_request hook. */ static const char *pre_prr[] = { "mod_setenvif.c", NULL }; ssl_io_filter_register(p); ap_hook_pre_connection(ssl_hook_pre_connection,NULL,NULL, APR_HOOK_MIDDLE); ap_hook_test_config (ssl_hook_ConfigTest, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_post_config (ssl_init_Module, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_http_scheme (ssl_hook_http_scheme, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_default_port (ssl_hook_default_port, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_pre_config (ssl_hook_pre_config, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_child_init (ssl_init_Child, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_check_user_id (ssl_hook_UserCheck, NULL,NULL, APR_HOOK_FIRST); ap_hook_fixups (ssl_hook_Fixup, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_access_checker(ssl_hook_Access, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_auth_checker (ssl_hook_Auth, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_post_read_request(ssl_hook_ReadReq, pre_prr,NULL, APR_HOOK_MIDDLE); ap_hook_insert_filter (ssl_hook_Insert_Filter, NULL,NULL, APR_HOOK_MIDDLE); /* ap_hook_handler (ssl_hook_Upgrade, NULL,NULL, APR_HOOK_MIDDLE); */ ssl_var_register(p); APR_REGISTER_OPTIONAL_FN(ssl_proxy_enable); APR_REGISTER_OPTIONAL_FN(ssl_engine_disable); APR_REGISTER_OPTIONAL_FN(ssl_extlist_by_oid); }
/*--------------------------------------------------------------------------*/ static void wd_register_hooks(apr_pool_t *p) { /* Only the mpm_winnt has child init hook handler. * Make sure that we are called after the mpm child init handler * initializes. */ static const char *const after_mpm[] = { "mpm_winnt.c", NULL}; /* Pre config handling */ ap_hook_pre_config(wd_pre_config_hook, NULL, NULL, APR_HOOK_FIRST); /* Post config handling */ ap_hook_post_config(wd_post_config_hook, NULL, NULL, APR_HOOK_LAST); /* Child init hook */ ap_hook_child_init(wd_child_init_hook, after_mpm, NULL, APR_HOOK_MIDDLE); APR_REGISTER_OPTIONAL_FN(ap_watchdog_get_instance); APR_REGISTER_OPTIONAL_FN(ap_watchdog_register_callback); APR_REGISTER_OPTIONAL_FN(ap_watchdog_set_callback_interval); }
static void log_fluentd_register_hooks(apr_pool_t *p) { static const char *pre[] = { "mod_log_config.c", NULL }; fluentd_hash = apr_hash_make(p); ap_hook_pre_config(log_fluentd_pre_config, pre, NULL, APR_HOOK_REALLY_FIRST); ap_hook_child_init(log_fluentd_child_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_log_transaction(log_fluentd_transaction,NULL,NULL,APR_HOOK_MIDDLE); }
static void register_hooks(apr_pool_t *p) { // read_request should be called after mod_setenvif's one ap_hook_post_read_request(dosdetector_read_request,NULL,NULL,APR_HOOK_LAST); ap_hook_pre_config(dosdetector_pre_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(dosdetector_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init(initialize_child, NULL, NULL, APR_HOOK_MIDDLE); }
static void ap_sharedmem_register_hook(apr_pool_t *p) { const slotmem_storage_method *storage = mem_getstorage(NULL, ""); ap_register_provider(p, SLOTMEM_STORAGE, "shared", "0", storage); ap_hook_post_config(initialize_cleanup, NULL, NULL, APR_HOOK_LAST); ap_hook_pre_config(pre_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init(child_init, NULL, NULL, APR_HOOK_FIRST); }
static void privileges_hooks(apr_pool_t *pool) { ap_hook_post_read_request(privileges_req, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_header_parser(privileges_req, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_drop_privileges(privileges_drop_first, NULL, NULL, APR_HOOK_FIRST); ap_hook_drop_privileges(privileges_drop_last, NULL, NULL, APR_HOOK_LAST); ap_hook_post_config(privileges_postconf, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_pre_config(privileges_init, NULL, NULL, APR_HOOK_FIRST); }
static void register_hooks(apr_pool_t *p) { static const char *pre[] = { "mod_log_config.c", NULL }; ap_hook_pre_connection(firstbyte_pre_conn, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_pre_config(firstbyte_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_post_read_request(firstbyte_post_req, NULL, NULL, APR_HOOK_LAST); ap_register_output_filter(firstbyte_filter_name, firstbyte_out_filter, NULL, AP_FTYPE_NETWORK - 1); }
static void register_hooks(apr_pool_t *p) { static const char *pre[] = { "mod_log_config.c", NULL }; ap_hook_pre_connection(logio_pre_conn, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_pre_config(logio_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_log_transaction(logio_transaction, pre, NULL, APR_HOOK_MIDDLE); ap_register_input_filter(logio_filter_name, logio_in_filter, NULL, AP_FTYPE_NETWORK - 1); APR_REGISTER_OPTIONAL_FN(ap_logio_add_bytes_out); APR_REGISTER_OPTIONAL_FN(ap_logio_add_bytes_in); APR_REGISTER_OPTIONAL_FN(ap_logio_get_last_bytes); }
static void simple_hooks(apr_pool_t * p) { static const char *const aszSucc[] = { "core.c", NULL }; ap_hook_open_logs(simple_open_logs, NULL, aszSucc, APR_HOOK_REALLY_FIRST); ap_hook_pre_config(simple_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_check_config(simple_check_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_mpm(simple_run, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_mpm_query(simple_query, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_mpm_get_name(simple_get_name, NULL, NULL, APR_HOOK_MIDDLE); }
static void netware_mpm_hooks(apr_pool_t *p) { /* Run the pre-config hook after core's so that it can override the * default setting of ThreadStackSize for NetWare. */ static const char * const predecessors[] = {"core.c", NULL}; ap_hook_pre_config(netware_pre_config, predecessors, NULL, APR_HOOK_MIDDLE); ap_hook_check_config(netware_check_config, NULL, NULL, APR_HOOK_MIDDLE); //ap_hook_post_config(netware_post_config, NULL, NULL, 0); //ap_hook_child_init(netware_child_init, NULL, NULL, APR_HOOK_MIDDLE); //ap_hook_open_logs(netware_open_logs, NULL, aszSucc, APR_HOOK_REALLY_FIRST); ap_hook_mpm(netware_run, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_mpm_query(netware_query, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_mpm_get_name(netware_get_name, NULL, NULL, APR_HOOK_MIDDLE); }
static void prefork_hooks(apr_pool_t *p) { /* The prefork open_logs phase must run before the core's, or stderr * will be redirected to a file, and the messages won't print to the * console. */ static const char *const aszSucc[] = {"core.c", NULL}; #ifdef AUX3 (void) set42sig(); #endif ap_hook_open_logs(prefork_open_logs, NULL, aszSucc, APR_HOOK_MIDDLE); /* we need to set the MPM state before other pre-config hooks use MPM query * to retrieve it, so register as REALLY_FIRST */ ap_hook_pre_config(prefork_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST); }
static void register_hooks(apr_pool_t *p) { ap_hook_pre_config(log_pre_config,NULL,NULL,APR_HOOK_REALLY_FIRST); ap_hook_child_init(init_child,NULL,NULL,APR_HOOK_MIDDLE); ap_hook_open_logs(init_config_log,NULL,NULL,APR_HOOK_MIDDLE); ap_hook_log_transaction(multi_log_transaction,NULL,NULL,APR_HOOK_MIDDLE); /* Init log_hash before we register the optional function. It is * possible for the optional function, ap_register_log_handler, * to be called before any other mod_log_config hooks are called. * As a policy, we should init everything required by an optional function * before calling APR_REGISTER_OPTIONAL_FN. */ log_hash = apr_hash_make(p); APR_REGISTER_OPTIONAL_FN(ap_register_log_handler); APR_REGISTER_OPTIONAL_FN(ap_log_set_writer_init); APR_REGISTER_OPTIONAL_FN(ap_log_set_writer); }
/* Implements the #register_hooks method of Apache's #module vtable. */ static void register_hooks(apr_pool_t *pconf) { ap_hook_pre_config(init_dso, NULL, NULL, APR_HOOK_REALLY_FIRST); ap_hook_post_config(init, NULL, NULL, APR_HOOK_MIDDLE); /* our provider */ dav_register_provider(pconf, "svn", &provider); /* input filter to read MERGE bodies. */ ap_register_input_filter("SVN-MERGE", merge_xml_in_filter, NULL, AP_FTYPE_RESOURCE); ap_hook_insert_filter(merge_xml_filter_insert, NULL, NULL, APR_HOOK_MIDDLE); /* general request handler for methods which mod_dav DECLINEs. */ ap_hook_handler(dav_svn__handler, NULL, NULL, APR_HOOK_LAST); /* Handler to GET Subversion's FSFS cache stats, a bit like mod_status. */ ap_hook_handler(dav_svn__status, NULL, NULL, APR_HOOK_MIDDLE); /* live property handling */ dav_hook_gather_propsets(dav_svn__gather_propsets, NULL, NULL, APR_HOOK_MIDDLE); dav_hook_find_liveprop(dav_svn__find_liveprop, NULL, NULL, APR_HOOK_MIDDLE); dav_hook_insert_all_liveprops(dav_svn__insert_all_liveprops, NULL, NULL, APR_HOOK_MIDDLE); dav_register_liveprop_group(pconf, &dav_svn__liveprop_group); /* Proxy / mirroring filters and fixups */ ap_register_output_filter("LocationRewrite", dav_svn__location_header_filter, NULL, AP_FTYPE_CONTENT_SET); ap_register_output_filter("ReposRewrite", dav_svn__location_body_filter, NULL, AP_FTYPE_CONTENT_SET); ap_register_input_filter("IncomingRewrite", dav_svn__location_in_filter, NULL, AP_FTYPE_CONTENT_SET); ap_hook_fixups(dav_svn__proxy_request_fixup, NULL, NULL, APR_HOOK_MIDDLE); /* translate_name hook is LAST so that it doesn't interfere with modules * like mod_alias that are MIDDLE. */ ap_hook_translate_name(dav_svn__translate_name, NULL, NULL, APR_HOOK_LAST); /* map_to_storage hook is LAST to avoid interferring with mod_http's * handling of OPTIONS and TRACE. */ ap_hook_map_to_storage(dav_svn__map_to_storage, NULL, NULL, APR_HOOK_LAST); }
static void register_hooks(apr_pool_t *p) { ap_hook_pre_config(authz_host_pre_config, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(authz_host_post_config, NULL, NULL, APR_HOOK_MIDDLE); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "ip", AUTHZ_PROVIDER_VERSION, &authz_ip_provider, AP_AUTH_INTERNAL_PER_CONF); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "host", AUTHZ_PROVIDER_VERSION, &authz_host_provider, AP_AUTH_INTERNAL_PER_CONF); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "forward-dns", AUTHZ_PROVIDER_VERSION, &authz_forward_dns_provider, AP_AUTH_INTERNAL_PER_CONF); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "local", AUTHZ_PROVIDER_VERSION, &authz_local_provider, AP_AUTH_INTERNAL_PER_CONF); }
static void ssl_register_hooks(apr_pool_t *p) { /* ssl_hook_ReadReq needs to use the BrowserMatch settings so must * run after mod_setenvif's post_read_request hook. */ static const char *pre_prr[] = { "mod_setenvif.c", NULL }; ssl_io_filter_register(p); ap_hook_pre_connection(ssl_hook_pre_connection,NULL,NULL, APR_HOOK_MIDDLE); ap_hook_process_connection(ssl_hook_process_connection, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_test_config (ssl_hook_ConfigTest, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_post_config (ssl_init_Module, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_http_scheme (ssl_hook_http_scheme, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_default_port (ssl_hook_default_port, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_pre_config (ssl_hook_pre_config, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_child_init (ssl_init_Child, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_check_authn (ssl_hook_UserCheck, NULL,NULL, APR_HOOK_FIRST, AP_AUTH_INTERNAL_PER_CONF); ap_hook_fixups (ssl_hook_Fixup, NULL,NULL, APR_HOOK_MIDDLE); ap_hook_check_access (ssl_hook_Access, NULL,NULL, APR_HOOK_MIDDLE, AP_AUTH_INTERNAL_PER_CONF); ap_hook_check_authz (ssl_hook_Auth, NULL,NULL, APR_HOOK_MIDDLE, AP_AUTH_INTERNAL_PER_CONF); ap_hook_post_read_request(ssl_hook_ReadReq, pre_prr,NULL, APR_HOOK_MIDDLE); ssl_var_register(p); APR_REGISTER_OPTIONAL_FN(ssl_proxy_enable); APR_REGISTER_OPTIONAL_FN(ssl_engine_disable); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "ssl", AUTHZ_PROVIDER_VERSION, &ssl_authz_provider_require_ssl, AP_AUTH_INTERNAL_PER_CONF); ap_register_auth_provider(p, AUTHZ_PROVIDER_GROUP, "ssl-verify-client", AUTHZ_PROVIDER_VERSION, &ssl_authz_provider_verify_client, AP_AUTH_INTERNAL_PER_CONF); }
static void register_hooks(apr_pool_t *p) { TRACER; // inline code in httpd.conf ap_hook_handler(mod_mruby_handler_inline, NULL, NULL, APR_HOOK_MIDDLE); //ap_hook_translate_name(mod_mruby_translate_name_first_inline, NULL, NULL, APR_HOOK_FIRST); MOD_MRUBY_SET_ALL_REGISTER_INLINE(handler); MOD_MRUBY_SET_ALL_REGISTER_INLINE(post_read_request); MOD_MRUBY_SET_ALL_REGISTER_INLINE(translate_name); MOD_MRUBY_SET_ALL_REGISTER_INLINE(map_to_storage); MOD_MRUBY_SET_ALL_REGISTER_INLINE(access_checker); MOD_MRUBY_SET_ALL_REGISTER_INLINE(check_user_id); MOD_MRUBY_SET_ALL_REGISTER_INLINE(auth_checker); MOD_MRUBY_SET_ALL_REGISTER_INLINE(fixups); MOD_MRUBY_SET_ALL_REGISTER_INLINE(log_transaction); // hook script file ap_hook_pre_config(mod_mruby_preinit, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(mod_mruby_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init(mod_mruby_child_init, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_handler(mod_mruby_handler, NULL, NULL, APR_HOOK_REALLY_FIRST); MOD_MRUBY_SET_ALL_REGISTER(handler); MOD_MRUBY_SET_ALL_REGISTER(child_init); MOD_MRUBY_SET_ALL_REGISTER(post_read_request); MOD_MRUBY_SET_ALL_REGISTER(quick_handler); MOD_MRUBY_SET_ALL_REGISTER(translate_name); MOD_MRUBY_SET_ALL_REGISTER(map_to_storage); MOD_MRUBY_SET_ALL_REGISTER(access_checker); MOD_MRUBY_SET_ALL_REGISTER(check_user_id); MOD_MRUBY_SET_ALL_REGISTER(auth_checker); MOD_MRUBY_SET_ALL_REGISTER(fixups); MOD_MRUBY_SET_ALL_REGISTER(insert_filter); MOD_MRUBY_SET_ALL_REGISTER(log_transaction); ap_register_provider(p, AUTHN_PROVIDER_GROUP, "mruby", "0", &authn_mruby_provider); ap_register_output_filter("mruby", mod_mruby_output_filter, NULL, AP_FTYPE_CONTENT_SET); //ap_register_input_filter( "MODMRUBYFILTER", mod_mruby_input_filter, NULL, AP_FTYPE_CONTENT_SET); }
static void register_hooks(apr_pool_t * p) { ap_hook_pre_config(ifdefine_extended_pre_config, NULL, NULL, APR_HOOK_MIDDLE); }
/* This is a function to register another function to be called during * the Apache configuration process. */ static void register_hooks(apr_pool_t *p) { ap_hook_pre_config(hook_pre_config, NULL, NULL, APR_HOOK_LAST); }
static void beos_hooks(apr_pool_t *p) { one_process = 0; ap_hook_pre_config(beos_pre_config, NULL, NULL, APR_HOOK_REALLY_FIRST); }
static void beos_hooks(apr_pool_t *p) { one_process = 0; ap_hook_pre_config(beos_pre_config, NULL, NULL, APR_HOOK_MIDDLE); }
static void netware_mpm_hooks(apr_pool_t *p) { ap_hook_pre_config(netware_pre_config, NULL, NULL, APR_HOOK_MIDDLE); }
static void mpmt_os2_hooks(apr_pool_t *p) { ap_hook_pre_config(mpmt_os2_pre_config, NULL, NULL, APR_HOOK_MIDDLE); }
static void registerHooks(apr_pool_t *pool) { ap_hook_pre_config(preConfig, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_post_config(postConfig, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_handler(run, NULL, NULL, APR_HOOK_MIDDLE); ap_hook_child_init(childInit, NULL, NULL, APR_HOOK_MIDDLE); }
static void log_millisecond_register_hooks(apr_pool_t *p) { ap_hook_pre_config(log_millisecond_pre_config, NULL, NULL, APR_HOOK_LAST); }
static void define_register_hooks(apr_pool_t *p) { ap_hook_pre_config(DefineWalkConfig, NULL, NULL, APR_HOOK_MIDDLE); }