]> granicus.if.org Git - apache/blob - include/http_main.h
apply Apache License, Version 2.0
[apache] / include / http_main.h
1 /* Copyright 2000-2004 Apache Software Foundation
2  *
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
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
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.
14  */
15
16 #ifndef APACHE_HTTP_MAIN_H
17 #define APACHE_HTTP_MAIN_H
18
19 #include "apr_optional.h"
20
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.
24  */
25 #define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtSh?X"
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 /**
32  * @package Command line options
33  */
34
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;
39
40 /* for -C, -c and -D switches */
41 /** An array of all -C directives.  These are processed before the server's
42  *  config file */
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
45  *  config file */
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;
50
51 APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *, apr_pool_t *));
52
53 #ifdef __cplusplus
54 }
55 #endif
56
57 #endif  /* !APACHE_HTTP_MAIN_H */