00001 /* Copyright 1999-2005 The Apache Software Foundation or its licensors, as 00002 * applicable. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef APACHE_HTTP_MAIN_H 00018 #define APACHE_HTTP_MAIN_H 00019 00020 #include "apr_optional.h" 00021 00022 /* AP_SERVER_BASEARGS is the command argument list parsed by http_main.c 00023 * in apr_getopt() format. Use this for default'ing args that the MPM 00024 * can safely ignore and pass on from its rewrite_args() handler. 00025 */ 00026 #define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtSh?X" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 /** 00033 * @package Command line options 00034 */ 00035 00036 /** The name of the Apache executable */ 00037 AP_DECLARE_DATA extern const char *ap_server_argv0; 00038 /** The global server's ServerRoot */ 00039 AP_DECLARE_DATA extern const char *ap_server_root; 00040 00041 /* for -C, -c and -D switches */ 00042 /** An array of all -C directives. These are processed before the server's 00043 * config file */ 00044 AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config; 00045 /** An array of all -c directives. These are processed after the server's 00046 * config file */ 00047 AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config; 00048 /** An array of all -D defines on the command line. This allows people to 00049 * effect the server based on command line options */ 00050 AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines; 00051 00052 APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *, apr_pool_t *)); 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif 00057 00058 #endif /* !APACHE_HTTP_MAIN_H */