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 mod_status.h 19 * @brief Status Report Extension Module to Apache 20 * 21 * @defgroup MOD_STATUS mod_status 22 * @ingroup APACHE_MODS 23 * @{ 24 */ 25 26#ifndef MOD_STATUS_H 27#define MOD_STATUS_H 28 29#include "ap_config.h" 30#include "httpd.h" 31 32#define AP_STATUS_SHORT (0x1) /* short, non-HTML report requested */ 33#define AP_STATUS_NOTABLE (0x2) /* HTML report without tables */ 34#define AP_STATUS_EXTENDED (0x4) /* detailed report */ 35 36#if !defined(WIN32) 37#define STATUS_DECLARE(type) type 38#define STATUS_DECLARE_NONSTD(type) type 39#define STATUS_DECLARE_DATA 40#elif defined(STATUS_DECLARE_STATIC) 41#define STATUS_DECLARE(type) type __stdcall 42#define STATUS_DECLARE_NONSTD(type) type 43#define STATUS_DECLARE_DATA 44#elif defined(STATUS_DECLARE_EXPORT) 45#define STATUS_DECLARE(type) __declspec(dllexport) type __stdcall 46#define STATUS_DECLARE_NONSTD(type) __declspec(dllexport) type 47#define STATUS_DECLARE_DATA __declspec(dllexport) 48#else 49#define STATUS_DECLARE(type) __declspec(dllimport) type __stdcall 50#define STATUS_DECLARE_NONSTD(type) __declspec(dllimport) type 51#define STATUS_DECLARE_DATA __declspec(dllimport) 52#endif 53 54/* Optional hooks which can insert extra content into the mod_status 55 * output. FLAGS will be set to the bitwise OR of any of the 56 * AP_STATUS_* flags. 57 * 58 * Implementations of this hook should generate content using 59 * functions in the ap_rputs/ap_rprintf family; each hook should 60 * return OK or DECLINED. */ 61APR_DECLARE_EXTERNAL_HOOK(ap, STATUS, int, status_hook, 62 (request_rec *r, int flags)) 63#endif 64/** @} */ 65