return pConfig;
}
-static const char *echo_on(cmd_parms *cmd, void *dummy, char *arg)
+static const char *echo_on(cmd_parms *cmd, void *dummy, const char *arg)
{
EchoConfig *pConfig=ap_get_module_config(cmd->server->module_config,
&echo_module);
return OK;
}
-static const command_rec echo_cmds[] = {
-{ "ProtocolEcho", echo_on, NULL, RSRC_CONF, RAW_ARGS,
- "Run an echo server on this host" },
-{ NULL }
+static const command_rec echo_cmds[] =
+{
+ AP_INIT_RAW_ARGS("ProtocolEcho", echo_on, NULL, RSRC_CONF,
+ "Run an echo server on this host"),
+ { NULL }
};
static void register_hooks(void)
return result;
}
-static const char *set_xbithack(cmd_parms *cmd, void *xbp, char *arg)
+static const char *set_xbithack(cmd_parms *cmd, void *xbp, const char *arg)
{
enum xbithack *state = (enum xbithack *) xbp;
static const command_rec includes_cmds[] =
{
- {"XBitHack", set_xbithack, NULL, OR_OPTIONS, TAKE1, "Off, On, or Full"},
+ AP_INIT_TAKE1("XBitHack", set_xbithack, NULL, OR_OPTIONS,
+ "Off, On, or Full"),
{NULL}
};
typedef struct {
const char *sockname;
- char *logname;
+ const char *logname;
long logbytes;
int bufbytes;
BUFF *bin;
return overrides->logname ? overrides : base;
}
-static const char *set_scriptlog(cmd_parms *cmd, void *dummy, char *arg)
+static const char *set_scriptlog(cmd_parms *cmd, void *dummy, const char *arg)
{
server_rec *s = cmd->server;
cgid_server_conf *conf =
return NULL;
}
-static const char *set_scriptlog_length(cmd_parms *cmd, void *dummy, char *arg)
+static const char *set_scriptlog_length(cmd_parms *cmd, void *dummy, const char *arg)
{
server_rec *s = cmd->server;
cgid_server_conf *conf =
return NULL;
}
-static const char *set_scriptlog_buffer(cmd_parms *cmd, void *dummy, char *arg)
+static const char *set_scriptlog_buffer(cmd_parms *cmd, void *dummy, const char *arg)
{
server_rec *s = cmd->server;
cgid_server_conf *conf =
return NULL;
}
-static const char *set_script_socket(cmd_parms *cmd, void *dummy, char *arg)
+static const char *set_script_socket(cmd_parms *cmd, void *dummy, const char *arg)
{
server_rec *s = cmd->server;
cgid_server_conf *conf =
static const command_rec cgid_cmds[] =
{
- {"ScriptLog", set_scriptlog, NULL, RSRC_CONF, TAKE1,
- "the name of a log for script debugging info"},
- {"ScriptLogLength", set_scriptlog_length, NULL, RSRC_CONF, TAKE1,
- "the maximum length (in bytes) of the script debug log"},
- {"ScriptLogBuffer", set_scriptlog_buffer, NULL, RSRC_CONF, TAKE1,
- "the maximum size (in bytes) to record of a POST request"},
- {"Scriptsock", set_script_socket, NULL, RSRC_CONF, TAKE1,
- "the name of the socket to use for communication with the cgi daemon."},
+ AP_INIT_TAKE1("ScriptLog", set_scriptlog, NULL, RSRC_CONF,
+ "the name of a log for script debugging info"),
+ AP_INIT_TAKE1("ScriptLogLength", set_scriptlog_length, NULL, RSRC_CONF,
+ "the maximum length (in bytes) of the script debug log"),
+ AP_INIT_TAKE1("ScriptLogBuffer", set_scriptlog_buffer, NULL, RSRC_CONF,
+ "the maximum size (in bytes) to record of a POST request"),
+ AP_INIT_TAKE1("Scriptsock", set_script_socket, NULL, RSRC_CONF,
+ "the name of the socket to use for communication with "
+ "the cgi daemon."),
{NULL}
};
static const command_rec setenvif_module_cmds[] =
{
- { "SetEnvIf", add_setenvif, NULL,
- OR_FILEINFO, RAW_ARGS, "A header-name, regex and a list of variables." },
- { "SetEnvIfNoCase", add_setenvif, ICASE_MAGIC,
- OR_FILEINFO, RAW_ARGS, "a header-name, regex and a list of variables." },
- { "BrowserMatch", add_browser, NULL,
- OR_FILEINFO, RAW_ARGS, "A browser regex and a list of variables." },
- { "BrowserMatchNoCase", add_browser, ICASE_MAGIC,
- OR_FILEINFO, RAW_ARGS, "A browser regex and a list of variables." },
+ AP_INIT_RAW_ARGS("SetEnvIf", add_setenvif, NULL,
+ OR_FILEINFO, "A header-name, regex and a list of variables."),
+ AP_INIT_RAW_ARGS("SetEnvIfNoCase", add_setenvif, ICASE_MAGIC,
+ OR_FILEINFO, "a header-name, regex and a list of variables."),
+ AP_INIT_RAW_ARGS("BrowserMatch", add_browser, NULL,
+ OR_FILEINFO, "A browser regex and a list of variables."),
+ AP_INIT_RAW_ARGS("BrowserMatchNoCase", add_browser, ICASE_MAGIC,
+ OR_FILEINFO, "A browser regex and a list of variables."),
{ NULL },
};