Function xcb::resolve_error

source ·
pub unsafe fn resolve_error(
    error: *mut xcb_generic_error_t,
    extension_data: &[ExtensionData],
) -> ProtocolError
Expand description

Resolve an error from the X server

If the error originates from an extension, the extension_data parameter must contain the data for the extension of origin. If the resolution fails, an ProtocolError::Unknown is returned.

§Safety

The caller must ensure that error is a valid pointer to an xcb_generic_error_t.