1
/* Licensed to the Apache Software Foundation (ASF) under one or more
2
* contributor license agreements. See the NOTICE file distributed with
3
* this work for additional information regarding copyright ownership.
4
* The ASF licenses this file to You under the Apache License, Version 2.0
5
* (the "License"); you may not use this file except in compliance with
6
* the License. You may obtain a copy of the License at
8
* http://www.apache.org/licenses/LICENSE-2.0
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
19
* @brief Command line options
21
* @defgroup APACHE_CORE_MAIN Command line options
22
* @ingroup APACHE_CORE
26
#ifndef APACHE_HTTP_MAIN_H
27
#define APACHE_HTTP_MAIN_H
30
#include "apr_optional.h"
32
/** AP_SERVER_BASEARGS is the command argument list parsed by http_main.c
33
* in apr_getopt() format. Use this for default'ing args that the MPM
34
* can safely ignore and pass on from its rewrite_args() handler.
36
#define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtTSMh?X"
42
/** The name of the Apache executable */
43
AP_DECLARE_DATA extern const char *ap_server_argv0;
44
/** The global server's ServerRoot */
45
AP_DECLARE_DATA extern const char *ap_server_root;
46
/** The global server's server_rec */
47
AP_DECLARE_DATA extern server_rec *ap_server_conf;
48
/** global pool, for access prior to creation of server_rec */
49
AP_DECLARE_DATA extern apr_pool_t *ap_pglobal;
50
/** state of the server (startup, exiting, ...) */
51
AP_DECLARE_DATA extern int ap_main_state;
52
/** run mode (normal, config test, config dump, ...) */
53
AP_DECLARE_DATA extern int ap_run_mode;
54
/** run mode (normal, config test, config dump, ...) */
55
AP_DECLARE_DATA extern int ap_config_generation;
57
/* for -C, -c and -D switches */
58
/** An array of all -C directives. These are processed before the server's
60
AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config;
61
/** An array of all -c directives. These are processed after the server's
63
AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config;
64
/** An array of all -D defines on the command line. This allows people to
65
* effect the server based on command line options */
66
AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines;
67
/** Available integer for using the -T switch */
68
AP_DECLARE_DATA extern int ap_document_root_check;
71
* An optional function to send signal to server on presence of '-k'
72
* command line argument.
73
* @param status The exit status after sending signal
74
* @param pool Memory pool to allocate from
76
APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *status, apr_pool_t *pool));
82
#endif /* !APACHE_HTTP_MAIN_H */