Annotation of win32/apache22/include/http_main.h, revision 1.1
1.1 ! moko 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
! 7: *
! 8: * http://www.apache.org/licenses/LICENSE-2.0
! 9: *
! 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.
! 15: */
! 16:
! 17: /**
! 18: * @file http_main.h
! 19: * @brief Command line options
! 20: *
! 21: * @defgroup APACHE_CORE_MAIN Command line options
! 22: * @ingroup APACHE_CORE
! 23: * @{
! 24: */
! 25:
! 26: #ifndef APACHE_HTTP_MAIN_H
! 27: #define APACHE_HTTP_MAIN_H
! 28:
! 29: #include "apr_optional.h"
! 30:
! 31: /** AP_SERVER_BASEARGS is the command argument list parsed by http_main.c
! 32: * in apr_getopt() format. Use this for default'ing args that the MPM
! 33: * can safely ignore and pass on from its rewrite_args() handler.
! 34: */
! 35: #define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtTSMh?X"
! 36:
! 37: #ifdef __cplusplus
! 38: extern "C" {
! 39: #endif
! 40:
! 41: /** The name of the Apache executable */
! 42: AP_DECLARE_DATA extern const char *ap_server_argv0;
! 43: /** The global server's ServerRoot */
! 44: AP_DECLARE_DATA extern const char *ap_server_root;
! 45:
! 46: /* for -C, -c and -D switches */
! 47: /** An array of all -C directives. These are processed before the server's
! 48: * config file */
! 49: AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config;
! 50: /** An array of all -c directives. These are processed after the server's
! 51: * config file */
! 52: AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config;
! 53: /** An array of all -D defines on the command line. This allows people to
! 54: * effect the server based on command line options */
! 55: AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines;
! 56: /** Available integer for using the -T switch */
! 57: AP_DECLARE_DATA extern int ap_document_root_check;
! 58:
! 59: /**
! 60: * An optional function to send signal to server on presence of '-k'
! 61: * command line argument.
! 62: * Called if MPM defines AP_MPM_WANT_SIGNAL_SERVER
! 63: * @param status The exit status after sending signal
! 64: * @param pool Memory pool to allocate from
! 65: */
! 66: APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *, apr_pool_t *));
! 67:
! 68: #ifdef __cplusplus
! 69: }
! 70: #endif
! 71:
! 72: #endif /* !APACHE_HTTP_MAIN_H */
! 73: /** @} */
E-mail: