Function xcb::ffi::base::xcb_poll_for_event[][src]

pub unsafe extern "C" fn xcb_poll_for_event(
    c: *mut xcb_connection_t
) -> *mut xcb_generic_event_t

Returns the next event or error from the server.

Returns the next event or error from the server, if one is available, or returns @c NULL otherwise. If no event is available, that might be because an I/O error like connection close occurred while attempting to read the next event, in which case the connection is shut down when this function returns.