mod_status.h 2.4 KB

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