1 /* Copyright 1999-2004 The Apache Software Foundation
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 #ifndef APACHE_HTTP_MAIN_H
17 #define APACHE_HTTP_MAIN_H
19 #include "apr_optional.h"
21 /* AP_SERVER_BASEARGS is the command argument list parsed by http_main.c
22 * in apr_getopt() format. Use this for default'ing args that the MPM
23 * can safely ignore and pass on from its rewrite_args() handler.
25 #define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtSh?X"
32 * @package Command line options
35 /** The name of the Apache executable */
36 AP_DECLARE_DATA extern const char *ap_server_argv0;
37 /** The global server's ServerRoot */
38 AP_DECLARE_DATA extern const char *ap_server_root;
40 /* for -C, -c and -D switches */
41 /** An array of all -C directives. These are processed before the server's
43 AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config;
44 /** An array of all -c directives. These are processed after the server's
46 AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config;
47 /** An array of all -D defines on the command line. This allows people to
48 * effect the server based on command line options */
49 AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines;
51 APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *, apr_pool_t *));
57 #endif /* !APACHE_HTTP_MAIN_H */