[][src]Type Definition alsa_sys::snd_lib_error_handler_t

type snd_lib_error_handler_t = Option<unsafe extern "C" fn(file: *const c_char, line: c_int, function: *const c_char, err: c_int, fmt: *const c_char, ...)>;

\brief Error handler callback. \param file Source file name. \param line Line number. \param function Function name. \param err Value of \c errno, or 0 if not relevant. \param fmt \c printf(3) format. \param ... \c printf(3) arguments.

A function of this type is called by the ALSA library when an error occurs. This function usually shows the message on the screen, and/or logs it.