ncdirect_get

Function ncdirect_get 

Source
pub unsafe extern "C" fn ncdirect_get(
    n: *mut ncdirect,
    absdl: *const timespec,
    ni: *mut ncinput,
) -> u32
Expand description

Provide a NULL ‘ts’ to block at length, a ‘ts’ of 0 for non-blocking operation, and otherwise an absolute deadline in terms of CLOCK_MONOTONIC. Returns a single Unicode code point, a synthesized special key constant, or (uint32_t)-1 on error. Returns 0 on a timeout. If an event is processed, the return value is the ‘id’ field from that event. ‘ni’ may be NULL.