这篇教程C++ AP_INIT_TAKE1函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中AP_INIT_TAKE1函数的典型用法代码示例。如果您正苦于以下问题:C++ AP_INIT_TAKE1函数的具体用法?C++ AP_INIT_TAKE1怎么用?C++ AP_INIT_TAKE1使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了AP_INIT_TAKE1函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: compose_and_set_redirect*/// If 'redirect' is foo/bar, then redirect to it. If it is// foo/bar/%s, then replace the %s with r->uri.static void compose_and_set_redirect(request_rec *r, const char* redirect) { char* composed_redirect = NULL; if (ap_strstr_c(redirect, "%s")) { composed_redirect = apr_psprintf(r->pool, redirect, r->uri); } apr_table_setn(r->headers_out, "Location", composed_redirect ? composed_redirect : redirect);}static const command_rec cookie_auth_cmds[] ={ AP_INIT_TAKE1("AuthCookieName", ap_set_string_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_cookie), OR_AUTHCFG, "auth cookie name"), AP_INIT_TAKE1("AuthCookieEnv", ap_set_string_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_env), OR_AUTHCFG, "environment variable name for optional auxiliary auth info"), AP_INIT_TAKE1("AuthCookieEnvRedirect", ap_set_string_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_env_redirect), OR_AUTHCFG, "path to redirect to if optional auxiliary auth info is missing in cookie"), AP_INIT_TAKE1("AuthCookieUnauthRedirect", ap_set_string_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_unauth_redirect), OR_AUTHCFG, "path to redirect to if authentication cookie is not set"), AP_INIT_TAKE1("AuthCookieEncrypt", ap_set_string_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_encrypt), OR_AUTHCFG, "secret key used to DES-encrypt the cookie"), AP_INIT_FLAG("AuthCookieOverride", ap_set_flag_slot, (void *)APR_OFFSETOF(cookie_auth_config_rec, cookie_auth_override),
开发者ID:akhiljain1986,项目名称:mod_auth_cookie,代码行数:31,
示例2: apr_table_setn apr_table_setn(r->subprocess_env, sconf->mobile_env, "true"); } } } else { // ap_log_error(APLOG_MARK, APLOG_DEBUG, 0, r->server , "No entry found for UA: %s", user_agent); } return DECLINED;}static const command_rec wurfl_cmds[] ={ AP_INIT_FLAG("WurflEnable", cmd_wurflengine, NULL, RSRC_CONF, "On or off to enable the whole WURFL module"), AP_INIT_TAKE1("WurflDBFile", cmd_wurfldb, NULL, RSRC_CONF, "the filename of the WURFL-DB xml file"), AP_INIT_TAKE1("WurflMobileEnv", cmd_wurflmobileenv, NULL, RSRC_CONF, "ENV to set for mobile user agents"), AP_INIT_TAKE1("WurflTabletEnv", cmd_wurfltabletenv, NULL, RSRC_CONF, "ENV to set for tablet user agents"), { NULL }};static void register_hooks(apr_pool_t *p){ ap_hook_header_parser(wurfl_match_headers, NULL, NULL, APR_HOOK_MIDDLE);}module AP_MODULE_DECLARE_DATA wurfl_module = { STANDARD20_MODULE_STUFF,
开发者ID:gklingler,项目名称:mod-wurfl,代码行数:32,
示例3: AP_INIT_FLAG * @internal * * Declares all configuration directives. */static const command_rec ironbee_cmds[] = { AP_INIT_FLAG( "IronBeeEnable", ironbee_cmd_ibenable, (void*)APR_OFFSETOF(ironbee_config_t, enabled), RSRC_CONF, "enable ironbee module" ), AP_INIT_TAKE1( "IronBeeConfig", ironbee_cmd_ibconfig, (void*)APR_OFFSETOF(ironbee_config_t, config), RSRC_CONF, "specify ironbee configuration file" ), AP_INIT_TAKE1( "IronBeeBufferSize", ironbee_cmd_sz, (void*)APR_OFFSETOF(ironbee_config_t, buf_size), RSRC_CONF, "specify buffer size (bytes)" ), AP_INIT_TAKE1( "IronBeeBufferFlushSize", ironbee_cmd_sz, (void*)APR_OFFSETOF(ironbee_config_t, flush_size), RSRC_CONF,
开发者ID:igalic,项目名称:ironbee,代码行数:31,
示例4: register_hooks "suffixed with 'b', 'k', 'm' or 'g'."; } dcfg->max_line_length = (apr_size_t)max; dcfg->max_line_length_set = 1; return NULL;}#define PROTO_FLAGS AP_FILTER_PROTO_CHANGE|AP_FILTER_PROTO_CHANGE_LENGTHstatic void register_hooks(apr_pool_t *pool){ ap_register_output_filter(substitute_filter_name, substitute_filter, NULL, AP_FTYPE_RESOURCE);}static const command_rec substitute_cmds[] = { AP_INIT_TAKE1("Substitute", set_pattern, NULL, OR_FILEINFO, "Pattern to filter the response content (s/foo/bar/[inf])"), AP_INIT_TAKE1("SubstituteMaxLineLength", set_max_line_length, NULL, OR_FILEINFO, "Maximum line length"), AP_INIT_FLAG("SubstituteInheritBefore", ap_set_flag_slot, (void *)APR_OFFSETOF(subst_dir_conf, inherit_before), OR_FILEINFO, "Apply inherited patterns before those of the current context"), {NULL}};AP_DECLARE_MODULE(substitute) = { STANDARD20_MODULE_STUFF, create_substitute_dcfg, /* dir config creater */ merge_substitute_dcfg, /* dir merger --- default is to override */ NULL, /* server config */ NULL, /* merge server config */ substitute_cmds, /* command table */
开发者ID:SBKarr,项目名称:apache-httpd-serenity,代码行数:32,
示例5: strtol debuglevel = strtol(arg, NULL, 10); return NULL;}#endif/* module info */static const command_rec aclr_cmds[] ={ AP_INIT_FLAG("AccelRedirectSet", set_aclr_state, NULL, ACCESS_CONF|RSRC_CONF, "Turn X-Accel-Redirect support On or Off (default Off)"), AP_INIT_TAKE1("AccelRedirectSize", set_redirect_min_size, NULL, ACCESS_CONF|RSRC_CONF, "Minimum size of file for redirect"), AP_INIT_FLAG("AccelRedirectOutsideDocRoot", set_aclr_outside_of_docroot, NULL, RSRC_CONF, "Allow redirect outside of DocumentRoot (default Off)"),#ifdef DEBUG AP_INIT_TAKE1("AccelRedirectDebug", set_debug_level, NULL, RSRC_CONF, "Debug level (0=off, 1=min, 2=mid, 3=max)"),#endif { NULL }};
开发者ID:defanator,项目名称:mod_aclr2,代码行数:30,
示例6: if } } else if (strcmp(name, "AmAgent") == 0) { if (!strcasecmp(arg, "on")) { conf->enabled = 1; } else { conf->enabled = 0; } } } } return NULL;}/*Context: either top level or inside VirtualHost*/static const command_rec amagent_cmds[] = { AP_INIT_TAKE1("AmAgent", am_set_opt, NULL, RSRC_CONF, "Module enabled/disabled"), AP_INIT_TAKE1("AmAgentConf", am_set_opt, NULL, RSRC_CONF, "Module configuration file"), { NULL }};static apr_status_t amagent_cleanup(void *arg) { /* main process cleanup */ server_rec *s = (server_rec *) arg; LOG_S(APLOG_DEBUG, s, "amagent_cleanup() %d", getpid());#ifndef _WIN32 am_shutdown();#endif return APR_SUCCESS;}
开发者ID:JonathanFu,项目名称:OpenAM-1,代码行数:30,
示例7: MOD_MRUBY_SET_ALL_CMDS_INLINE //ap_register_input_filter( "MODMRUBYFILTER", mod_mruby_input_filter, NULL, AP_FTYPE_CONTENT_SET);}#define MOD_MRUBY_SET_ALL_CMDS_INLINE(hook, dir_name) / AP_INIT_TAKE1("mruby" #dir_name "FirstCode", set_mod_mruby_##hook##_first_inline, NULL, RSRC_CONF | ACCESS_CONF, "hook inline code for " #hook " first phase."), / AP_INIT_TAKE1("mruby" #dir_name "MiddleCode", set_mod_mruby_##hook##_middle_inline, NULL, RSRC_CONF | ACCESS_CONF, "hook inline code for " #hook " middle phase."), / AP_INIT_TAKE1("mruby" #dir_name "LastCode", set_mod_mruby_##hook##_last_inline, NULL, RSRC_CONF | ACCESS_CONF, "hook inline code for " #hook " last phase."),#define MOD_MRUBY_SET_ALL_CMDS(hook, dir_name) / AP_INIT_TAKE12("mruby" #dir_name "First", set_mod_mruby_##hook##_first, NULL, RSRC_CONF | ACCESS_CONF, "hook Ruby file for " #hook " first phase."), / AP_INIT_TAKE12("mruby" #dir_name "Middle", set_mod_mruby_##hook##_middle, NULL, RSRC_CONF | ACCESS_CONF, "hook Ruby file for " #hook " middle phase."), / AP_INIT_TAKE12("mruby" #dir_name "Last", set_mod_mruby_##hook##_last, NULL, RSRC_CONF | ACCESS_CONF, "hook Ruby file for " #hook " last phase."),static const command_rec mod_mruby_cmds[] = { AP_INIT_TAKE1("mrubyHandlerCode", set_mod_mruby_handler_inline, NULL, RSRC_CONF | ACCESS_CONF, "hook inline code for handler phase."), MOD_MRUBY_SET_ALL_CMDS_INLINE(handler, Handler) MOD_MRUBY_SET_ALL_CMDS_INLINE(post_read_request, PostReadRequest) MOD_MRUBY_SET_ALL_CMDS_INLINE(translate_name, TranslateName) MOD_MRUBY_SET_ALL_CMDS_INLINE(map_to_storage, MapToStorage) MOD_MRUBY_SET_ALL_CMDS_INLINE(access_checker, AccessChecker) MOD_MRUBY_SET_ALL_CMDS_INLINE(check_user_id, CheckUserId) MOD_MRUBY_SET_ALL_CMDS_INLINE(auth_checker, AuthChecker) MOD_MRUBY_SET_ALL_CMDS_INLINE(fixups, Fixups) MOD_MRUBY_SET_ALL_CMDS_INLINE(log_transaction, LogTransaction) AP_INIT_TAKE12("mrubyHandler", set_mod_mruby_handler, NULL, RSRC_CONF | ACCESS_CONF, "hook for handler phase."), MOD_MRUBY_SET_ALL_CMDS(handler, Handler) MOD_MRUBY_SET_ALL_CMDS(post_config, PostConfig) MOD_MRUBY_SET_ALL_CMDS(child_init, ChildInit) MOD_MRUBY_SET_ALL_CMDS(post_read_request, PostReadRequest)
开发者ID:mpmedia,项目名称:mod_mruby,代码行数:31,
示例8: AP_INIT_RAW_ARGSmodule AP_MODULE_DECLARE_DATA moon_module;// config structtypedef struct moon_svr_cfg { char *buf; const char* user_data_url; const char* group_data_url; apr_hash_t * user_to_css; apr_hash_t * group_to_css;} moon_svr_cfg;// List of containers and directivesstatic const command_rec moon_cmds[] = { AP_INIT_RAW_ARGS("<LMMPGroup", lmmpgroup_cmd, NULL, EXEC_ON_READ|OR_ALL, "Container for setting group css style"), AP_INIT_RAW_ARGS("<LMMPUser", lmmpuser_cmd, NULL, EXEC_ON_READ|OR_ALL, "Container for setting user css style"), AP_INIT_TAKE1("LMMPSetUserDataUrl", lmmpset_user_data_url_cmd, NULL, OR_ALL, "set user data url"), AP_INIT_TAKE1("LMMPSetGroupDataUrl", lmmpset_group_data_url_cmd, NULL, OR_ALL, "set group data url"), { NULL }};// Standard Module declaration for Apache 2.0module AP_MODULE_DECLARE_DATA moon_module = { STANDARD20_MODULE_STUFF, NULL, NULL, create_moon_cfg, NULL, moon_cmds, moon_hooks};
开发者ID:valderrama,项目名称:ModSSOBand,代码行数:30,
示例9: AP_INIT_TAKE1 See LICENSE file for licensing details.*/#include "mod_falcon.h"#include "mod_falcon_config.h"/*========================================================= Module data. Configuration directive for Falcon module*/static const command_rec mod_falcon_cmds[] ={ AP_INIT_TAKE1( "FalconConfig", (const char *(*)())falcon_mod_set_config, NULL, RSRC_CONF, "config_file (string) -- Location of the falcon.ini file." ), AP_INIT_TAKE1( "FalconHandler", (const char *(*)())falcon_mod_set_handler, NULL, ACCESS_CONF | RSRC_CONF, "handler script (string) -- Program invoked when falcon-program handler is excited." ), AP_INIT_TAKE1( "FalconLoadPath", (const char *(*)())falcon_mod_set_path,
开发者ID:Klaim,项目名称:falcon,代码行数:31,
示例10: AP_INIT_TAKE13 AP_INIT_TAKE13("LogSQLLoginInfo", set_log_sql_info, NULL, RSRC_CONF, "The database connection URI in the form "driver://user:[email C++ AR函数代码示例 C++ AP_INIT_FLAG函数代码示例
|