Apache HTTPD
Macros
ap_config.h File Reference

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(type)   type
 
#define AP_DECLARE_NONSTD(type)   type
 
#define AP_DECLARE_DATA
 
#define AP_MODULE_DECLARE(type)   type
 
#define AP_MODULE_DECLARE_NONSTD(type)   type
 
#define AP_MODULE_DECLARE_DATA
 
#define DEFAULT_PIDLOG   DEFAULT_REL_RUNTIMEDIR "/httpd.pid"
 
#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)
 

Detailed Description

Symbol export macros and hook functions.

Definition in file ap_config.h.

Macro Definition Documentation

◆ __has_attribute

#define __has_attribute (   x)    0

Definition at line 180 of file ap_config.h.

◆ AP_DECLARE

#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(type)
Definition ap_config.h:67
apr_size_t size
const char const char *const * args

Definition at line 67 of file ap_config.h.

◆ AP_DECLARE_DATA

#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.

Note
AP_DECLARE_DATA extern type apr_variable; syntax is required for declarations within headers to properly import the variable.
#define AP_DECLARE_DATA
Definition ap_config.h:89
int type

Definition at line 89 of file ap_config.h.

◆ AP_DECLARE_NONSTD

#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.

See also
AP_DECLARE
#define AP_DECLARE_NONSTD(type)
Definition ap_config.h:77

Definition at line 77 of file ap_config.h.

◆ AP_FN_ATTR_ALLOC_SIZE

#define AP_FN_ATTR_ALLOC_SIZE (   x)

Definition at line 202 of file ap_config.h.

◆ AP_FN_ATTR_ALLOC_SIZE2

#define AP_FN_ATTR_ALLOC_SIZE2 (   x,
  y 
)

Definition at line 203 of file ap_config.h.

◆ AP_FN_ATTR_SENTINEL

#define AP_FN_ATTR_SENTINEL

Definition at line 185 of file ap_config.h.

◆ AP_FN_ATTR_WARN_UNUSED_RESULT

#define AP_FN_ATTR_WARN_UNUSED_RESULT

Definition at line 193 of file ap_config.h.

◆ AP_MODULE_DECLARE

#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.

module AP_MODULE_DECLARE_DATA mod_tag

Definition at line 118 of file ap_config.h.

◆ AP_MODULE_DECLARE_DATA

#define AP_MODULE_DECLARE_DATA

Definition at line 121 of file ap_config.h.

◆ AP_MODULE_DECLARE_NONSTD

#define AP_MODULE_DECLARE_NONSTD (   type)    type

Definition at line 120 of file ap_config.h.

◆ DEFAULT_PIDLOG

#define DEFAULT_PIDLOG   DEFAULT_REL_RUNTIMEDIR "/httpd.pid"

Definition at line 144 of file ap_config.h.