bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / apache2 / include / mod_status.h
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 #ifndef MOD_STATUS_H
18 #define MOD_STATUS_H
19
20 #include "ap_config.h"
21 #include "httpd.h"
22
23 #define AP_STATUS_SHORT    (0x1)  /* short, non-HTML report requested */
24 #define AP_STATUS_NOTABLE  (0x2)  /* HTML report without tables */
25 #define AP_STATUS_EXTENDED (0x4)  /* detailed report */
26
27 #if !defined(WIN32)
28 #define STATUS_DECLARE(type)            type
29 #define STATUS_DECLARE_NONSTD(type)     type
30 #define STATUS_DECLARE_DATA
31 #elif defined(STATUS_DECLARE_STATIC)
32 #define STATUS_DECLARE(type)            type __stdcall
33 #define STATUS_DECLARE_NONSTD(type)     type
34 #define STATUS_DECLARE_DATA
35 #elif defined(STATUS_DECLARE_EXPORT)
36 #define STATUS_DECLARE(type)            __declspec(dllexport) type __stdcall
37 #define STATUS_DECLARE_NONSTD(type)     __declspec(dllexport) type
38 #define STATUS_DECLARE_DATA             __declspec(dllexport)
39 #else
40 #define STATUS_DECLARE(type)            __declspec(dllimport) type __stdcall
41 #define STATUS_DECLARE_NONSTD(type)     __declspec(dllimport) type
42 #define STATUS_DECLARE_DATA             __declspec(dllimport)
43 #endif
44
45 /* Optional hooks which can insert extra content into the mod_status
46  * output.  FLAGS will be set to the bitwise OR of any of the
47  * AP_STATUS_* flags.
48  *
49  * Implementations of this hook should generate content using
50  * functions in the ap_rputs/ap_rprintf family; each hook should
51  * return OK or DECLINED. */
52 APR_DECLARE_EXTERNAL_HOOK(ap, STATUS, int, status_hook,
53                           (request_rec *r, int flags))
54 #endif