Function redwm::imports::query_extension[][src]

pub fn query_extension<Conn>(
    conn: &'c Conn,
    name: &'input [u8]
) -> Result<Cookie<'c, Conn, QueryExtensionReply>, ConnectionError> where
    Conn: RequestConnection + ?Sized
Expand description

check if extension is present.

Determines if the specified extension is present on this X11 server.

Every extension has a unique major_opcode to identify requests, the minor opcodes and request formats are extension-specific. If the extension provides events and errors, the first_event and first_error fields in the reply are set accordingly.

There should rarely be a need to use this request directly, XCB provides the xcb_get_extension_data function instead.

Fields

  • name_len - The length of name in bytes.
  • name - The name of the extension to query, for example “RANDR”. This is case sensitive!

See

  • xdpyinfo: program
  • xcb_get_extension_data: function