Blame include/http_main.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file  http_main.h
Packit 90a5c9
 * @brief Command line options
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup APACHE_CORE_MAIN Command line options
Packit 90a5c9
 * @ingroup  APACHE_CORE
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef APACHE_HTTP_MAIN_H
Packit 90a5c9
#define APACHE_HTTP_MAIN_H
Packit 90a5c9
Packit 90a5c9
#include "httpd.h"
Packit 90a5c9
#include "apr_optional.h"
Packit 90a5c9
Packit 90a5c9
/** AP_SERVER_BASEARGS is the command argument list parsed by http_main.c
Packit 90a5c9
 * in apr_getopt() format.  Use this for default'ing args that the MPM
Packit 90a5c9
 * can safely ignore and pass on from its rewrite_args() handler.
Packit 90a5c9
 */
Packit 90a5c9
#define AP_SERVER_BASEARGS "C:c:D:d:E:e:f:vVlLtTSMh?X"
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
extern "C" {
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/** The name of the Apache executable */
Packit 90a5c9
AP_DECLARE_DATA extern const char *ap_server_argv0;
Packit 90a5c9
/** The global server's ServerRoot */
Packit 90a5c9
AP_DECLARE_DATA extern const char *ap_server_root;
Packit 90a5c9
/** The global server's DefaultRuntimeDir
Packit 90a5c9
 * This is not usable directly in the general case; use
Packit 90a5c9
 * ap_runtime_dir_relative() instead.
Packit 90a5c9
 */
Packit 90a5c9
AP_DECLARE_DATA extern const char *ap_runtime_dir;
Packit 90a5c9
/** The global server's server_rec */
Packit 90a5c9
AP_DECLARE_DATA extern server_rec *ap_server_conf;
Packit 90a5c9
/** global pool, for access prior to creation of server_rec */
Packit 90a5c9
AP_DECLARE_DATA extern apr_pool_t *ap_pglobal;
Packit 90a5c9
/** state of the server (startup, exiting, ...) */
Packit 90a5c9
AP_DECLARE_DATA extern int ap_main_state;
Packit 90a5c9
/** run mode (normal, config test, config dump, ...) */
Packit 90a5c9
AP_DECLARE_DATA extern int ap_run_mode;
Packit 90a5c9
/** run mode (normal, config test, config dump, ...) */
Packit 90a5c9
AP_DECLARE_DATA extern int ap_config_generation;
Packit 90a5c9
Packit 90a5c9
/* for -C, -c and -D switches */
Packit 90a5c9
/** An array of all -C directives.  These are processed before the server's
Packit 90a5c9
 *  config file */
Packit 90a5c9
AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config;
Packit 90a5c9
/** An array of all -c directives.  These are processed after the server's
Packit 90a5c9
 *  config file */
Packit 90a5c9
AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config;
Packit 90a5c9
/** An array of all -D defines on the command line.  This allows people to
Packit 90a5c9
 *  effect the server based on command line options */
Packit 90a5c9
AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines;
Packit 90a5c9
/** Available integer for using the -T switch */
Packit 90a5c9
AP_DECLARE_DATA extern int ap_document_root_check;
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * An optional function to send signal to server on presence of '-k'
Packit 90a5c9
 * command line argument.
Packit 90a5c9
 * @param status The exit status after sending signal
Packit 90a5c9
 * @param pool Memory pool to allocate from
Packit 90a5c9
 */
Packit 90a5c9
APR_DECLARE_OPTIONAL_FN(int, ap_signal_server, (int *status, apr_pool_t *pool));
Packit 90a5c9
Packit 90a5c9
#ifdef __cplusplus
Packit 90a5c9
}
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
#endif  /* !APACHE_HTTP_MAIN_H */
Packit 90a5c9
/** @} */