|
CYAML Internals
|
#include <cyaml.h>
Data Fields | |
| cyaml_log_fn_t | log_fn |
| void * | log_ctx |
| cyaml_mem_fn_t | mem_fn |
| void * | mem_ctx |
| cyaml_log_t | log_level |
| cyaml_cfg_flags_t | flags |
Client CYAML configuration data.
| cyaml_cfg_flags_t cyaml_config::flags |
CYAML behaviour flags.
| void* cyaml_config::log_ctx |
Client logging function context pointer.
Clients using their own custom logging function can pass their context here, which will be passed through to their log_fn.
The default logging function, cyaml_log doesn't require a logging context, so pass NULL for the log_ctx if using that.
| cyaml_log_fn_t cyaml_config::log_fn |
Client function to use for logging.
Clients can implement their own logging function and set it here. Otherwise, set log_fn to cyaml_log if CYAML's default logging to stderr is suitable (see its documentation for more details), or set to NULL to suppress all logging.
| cyaml_log_t cyaml_config::log_level |
Minimum logging priority level to be issued.
Specifying e.g. CYAML_LOG_WARNING will cause only warnings and errors to emerge.
| void* cyaml_config::mem_ctx |
Client memory function context pointer.
Clients using their own custom allocation function can pass their context here, which will be passed through to their mem_fn.
The default allocation function, cyaml_mem doesn't require an allocation context, so pass NULL for the mem_ctx if using that.
| cyaml_mem_fn_t cyaml_config::mem_fn |