ass_set_message_cb method
void
ass_set_message_cb()
\brief Register a callback for debug/info messages.
If a callback is registered, it is called for every message emitted by
libass. The callback receives a format string and a list of arguments,
to be used for the printf family of functions. Additionally, a log level
from 0 (FATAL errors) to 7 (verbose DEBUG) is passed. Usually, level 5
should be used by applications.
If no callback is set, all messages level < 5 are printed to stderr,
prefixed with ass
.
\param priv library handle \param msg_cb pointer to callback function \param data additional data, will be passed to callback
Implementation
void ass_set_message_cb(
ffi.Pointer<ASS_Library> priv,
ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(ffi.Int, ffi.Pointer<ffi.Char>, va_list,
ffi.Pointer<ffi.Void>)>>
msg_cb,
ffi.Pointer<ffi.Void> data,
) {
return _ass_set_message_cb(
priv,
msg_cb,
data,
);
}