[][src]Type Definition k4a_sys_temp::k4a_logging_message_cb_t

type k4a_logging_message_cb_t = Option<unsafe extern "C" fn(context: *mut c_void, level: k4a_log_level_t, file: *const c_char, line: c_int, message: *const c_char)>;

Callback function for debug messages being generated by the Azure Kinect SDK.

\param context The context of the callback function. This is the context that was supplied by the caller to \p k4a_set_debug_message_handler.

\param level The level of the message that has been created.

\param file The file name of the source file that generated the message.

\param line The line number of the source file that generated the message.

\param message The messaged generated by the Azure Kinect SDK.

\remarks The callback is called asynchronously when the Azure Kinext SDK generates a message at a \p level that is equal to or more critical than the level specified when calling \ref k4a_set_debug_message_handler() to register the callback.

\remarks This callback can occur from any thread and blocks the calling thread. The k4a_logging_message_cb_t function user must protect it's logging resources from concurrent calls. All care should be made to minimize the amount of time locks are held.

\xmlonly k4atypes.h (include k4a/k4a.h) \endxmlonly