マクロ定義 | |
#define | APR_OPTIONAL_FN_TYPE(name) apr_OFN_##name##_t |
#define | APR_DECLARE_OPTIONAL_FN(ret, name, args) typedef ret (APR_OPTIONAL_FN_TYPE(name)) args |
#define | APR_REGISTER_OPTIONAL_FN(name) |
#define | APR_RETRIEVE_OPTIONAL_FN(name) (APR_OPTIONAL_FN_TYPE(name) *)apr_dynamic_fn_retrieve(#name) |
型定義 | |
typedef void( | apr_opt_fn_t )(void) |
関数 | |
APU_DECLARE_NONSTD (void) apr_dynamic_fn_register(const char *szName | |
apr_opt_fn_t * | apr_dynamic_fn_retrieve (const char *szName) |
変数 | |
apr_opt_fn_t * | pfn |
#define APR_DECLARE_OPTIONAL_FN | ( | ret, | |||
name, | |||||
args | ) | typedef ret (APR_OPTIONAL_FN_TYPE(name)) args |
Declare an optional function.
ret | The return type of the function | |
name | The name of the function | |
args | The function arguments (including brackets) |
#define APR_OPTIONAL_FN_TYPE | ( | name | ) | apr_OFN_##name##_t |
The type of an optional function.
name | The name of the function |
#define APR_REGISTER_OPTIONAL_FN | ( | name | ) |
値:
do { \ APR_OPTIONAL_FN_TYPE(name) *apu__opt = name; \ apr_dynamic_fn_register(#name,(apr_opt_fn_t *)apu__opt); \ } while (0)
name | The name of the function |
#define APR_RETRIEVE_OPTIONAL_FN | ( | name | ) | (APR_OPTIONAL_FN_TYPE(name) *)apr_dynamic_fn_retrieve(#name) |
Retrieve an optional function. Returns NULL if the function is not present.
name | The name of the function |
typedef void( apr_opt_fn_t)(void) |
XXX: This doesn't belong here, then! Private function! DO NOT USE!