Function mpv_event_name

Source
pub unsafe extern "C" fn mpv_event_name(
    event: mpv_event_id,
) -> *const c_char
Expand description

Return a string describing the event. For unknown events, NULL is returned.

Note that all events actually returned by the API will also yield a non-NULL string with this function.

@param event event ID, see see enum mpv_event_id @return A static string giving a short symbolic name of the event. It consists of lower-case alphanumeric characters and can include “-” characters. This string is suitable for use in e.g. scripting interfaces. The string is completely static, i.e. doesn’t need to be deallocated, and is valid forever.