pub unsafe extern "C" fn osdp_set_log_callback(
cb: osdp_log_callback_fn_t,
)Expand description
@brief A callback function that gets called when LibOSDP wants to emit a log line. All messages (of all log levels) are passed on to this callback without any log formatting. This API is for users who may already have a logger configured in their application.
@param cb The callback function. See osdp_log_callback_fn_t for more
details.
@note This function has to be called before osdp_{cp,pd}_setup(). Otherwise it will be ignored.