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 Status Report Extension Module to Apache
21
* @defgroup MOD_STATUS mod_status
22
* @ingroup APACHE_MODS
29
#include "ap_config.h"
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 */
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)
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)
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
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. */
61
APR_DECLARE_EXTERNAL_HOOK(ap, STATUS, int, status_hook,
62
(request_rec *r, int flags))