jose_cfg(3) | Library Functions Manual | jose_cfg(3) |
jose_cfg - José Configuration.
typedef jose_cfg_t jose_cfg_auto_t
Defines a jose_cfg_t which calls jose_cfg_decref() at end of scope.
jose_cfg_t * jose_cfg (void)
Creates a new configuration instance. jose_cfg_t * jose_cfg_incref
(jose_cfg_t *cfg)
Increases the reference count of a configuration instance. void
jose_cfg_decref (jose_cfg_t *cfg)
Decreases the reference count of a configuration instance. void
jose_cfg_set_err_func (jose_cfg_t *cfg, jose_cfg_err_t *err, void
*misc)
Sets the error handler function for this configuration instance. void *
jose_cfg_get_err_misc (jose_cfg_t *cfg)
Gets the miscellaneous data associated with the current error handler. void
jose_cfg_err (jose_cfg_t *cfg, uint64_t err, const char *fmt,...)
Submit an error.
José Configuration.
Defines a jose_cfg_t which calls jose_cfg_decref() at end of scope. For example:
void foo() {
jose_cfg_auto_t *cfg = jose_cfg();
// jose_cfg_decref() implicitly called }
Creates a new configuration instance.
Returns:
Increases the reference count of a configuration instance. This function always succeeds.
Parameters:
Returns:
Decreases the reference count of a configuration instance. When the reference count reaches zero, the configuration instance is freed.
Parameters:
Sets the error handler function for this configuration instance. The value of misc will be passed to the error handler function.
You may pass NULL to err to return to the default error handler.
Parameters:
Gets the miscellaneous data associated with the current error handler.
Parameters:
Returns:
Submit an error. The error handler will be called with the error provided.
Parameters:
Generated automatically by Doxygen for José from the source code.
Tue May 30 2017 | José |