Apache2
|
Symbol export macros and hook functions. More...
#include "ap_hooks.h"
#include "os.h"
#include "ap_config_auto.h"
#include "ap_config_layout.h"
#include "apache_noprobes.h"
Go to the source code of this file.
Macros | |
#define | AP_DECLARE_STATIC |
#define | AP_DECLARE_EXPORT |
#define | AP_DECLARE(type) type |
#define | AP_DECLARE_NONSTD(type) type |
#define | AP_DECLARE_DATA |
#define | APREQ_DECLARE(d) APR_DECLARE(d) |
#define | APREQ_DECLARE_NONSTD(d) APR_DECLARE_NONSTD(d) |
#define | APREQ_DECLARE_DATA |
#define | AP_MODULE_DECLARE(type) type |
#define | AP_MODULE_DECLARE_NONSTD(type) type |
#define | AP_MODULE_DECLARE_DATA |
#define | DEFAULT_PIDLOG "httpd.pid" |
#define | AP_HAVE_RELIABLE_PIPED_LOGS TRUE |
#define | __has_attribute(x) 0 |
#define | AP_FN_ATTR_SENTINEL |
#define | AP_FN_ATTR_WARN_UNUSED_RESULT |
#define | AP_FN_ATTR_ALLOC_SIZE(x) |
#define | AP_FN_ATTR_ALLOC_SIZE2(x, y) |
#define | AP_FN_ATTR_NONNULL_ALL |
#define | AP_FN_ATTR_NONNULL(x) |
Symbol export macros and hook functions.
#define __has_attribute | ( | x | ) | 0 |
#define AP_DECLARE | ( | type | ) | type |
Apache Core dso functions are declared with AP_DECLARE(), so they may use the most appropriate calling convention. Hook functions and other Core functions with variable arguments must use AP_DECLARE_NONSTD().
#define AP_DECLARE_DATA |
Apache Core dso variables are declared with AP_MODULE_DECLARE_DATA. This assures the appropriate indirection is invoked at compile time.
#define AP_DECLARE_EXPORT |
AP_DECLARE_EXPORT is defined when building the Apache Core dynamic library, so that all public symbols are exported.
#define AP_DECLARE_NONSTD | ( | type | ) | type |
Apache Core dso variable argument and hook functions are declared with AP_DECLARE_NONSTD(), as they must use the C language calling convention.
#define AP_DECLARE_STATIC |
AP_DECLARE_STATIC is defined when including Apache's Core headers, to provide static linkage when the dynamic library may be unavailable.
AP_DECLARE_STATIC and AP_DECLARE_EXPORT are left undefined when including Apache's Core headers, to import and link the symbols from the dynamic Apache Core library and assure appropriate indirection and calling conventions at compile time.
#define AP_FN_ATTR_ALLOC_SIZE | ( | x | ) |
#define AP_FN_ATTR_ALLOC_SIZE2 | ( | x, | |
y | |||
) |
#define AP_FN_ATTR_NONNULL | ( | x | ) |
#define AP_FN_ATTR_NONNULL_ALL |
#define AP_FN_ATTR_SENTINEL |
#define AP_FN_ATTR_WARN_UNUSED_RESULT |
#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE |
#define AP_MODULE_DECLARE | ( | type | ) | type |
Declare a dso module's exported module structure as AP_MODULE_DECLARE_DATA.
Unless AP_MODULE_DECLARE_STATIC is defined at compile time, symbols declared with AP_MODULE_DECLARE_DATA are always exported.
#define AP_MODULE_DECLARE_DATA |
#define AP_MODULE_DECLARE_NONSTD | ( | type | ) | type |
#define APREQ_DECLARE | ( | d | ) | APR_DECLARE(d) |
The public APREQ functions are declared with APREQ_DECLARE(), so they may use the most appropriate calling convention. Public APR functions with variable arguments must use APR_DECLARE_NONSTD().
#define APREQ_DECLARE_DATA |
The public APREQ variables are declared with APREQ_DECLARE_DATA. This assures the appropriate indirection is invoked at compile time.
#define APREQ_DECLARE_NONSTD | ( | d | ) | APR_DECLARE_NONSTD(d) |
APEQ_DECLARE_NONSTD(rettype) apr_func(args, ...);
#define DEFAULT_PIDLOG "httpd.pid" |