Detailed Description
Typesafe registration and retrieval of functions that may not be present (i.e. functions exported by optional modules)
Define Documentation
Declare an optional function.
- Parameters:
-
ret | The return type of the function |
name | The name of the function |
args | The function arguments (including brackets) |
Definition at line 50 of file apr_optional.h.
The type of an optional function.
- Parameters:
-
name | The name of the function |
Definition at line 42 of file apr_optional.h.
Value:do { \
APR_OPTIONAL_FN_TYPE(name) *apu__opt = name; \
apr_dynamic_fn_register(#name,(apr_opt_fn_t *)apu__opt); \
} while (0)
Register an optional function. This can be later retrieved, type-safely, by name. Like all global functions, the name must be unique. Note that, confusingly but correctly, the function itself can be static!
- Parameters:
-
name | The name of the function |
Definition at line 70 of file apr_optional.h.
Retrieve an optional function. Returns NULL if the function is not present.
- Parameters:
-
name | The name of the function |
Definition at line 84 of file apr_optional.h.
Typedef Documentation
XXX: This doesn't belong here, then! Private function! DO NOT USE!
Definition at line 59 of file apr_optional.h.
Function Documentation
Variable Documentation