DC_CONTEXT_SET_LOGFUNC(3) | Library Functions Manual | DC_CONTEXT_SET_LOGFUNC(3) |
dc_context_set_logfunc
—
#include
<libdivecomputer/context.h>
typedef void
(*dc_logfunc_t)
(dc_context_t
*context, dc_loglevel_t loglevel,
const char *file, unsigned int
line, const char *function,
const char *message, void
*userdata);
dc_status_t
dc_context_set_logfunc
(dc_context_t
*context, dc_logfunc_t logfunc,
void *userdata);
The logfunc accepts the following values:
dc_context_set_logfunc
.DC_STATUS_OK
on setting the log level,
DC_STATUS_INVALIDARGS
if context
is NULL
, or another error code on failure.
January 5, 2017 | NetBSD 10.0 |