xcb.xcbext

Members

Functions

xcb_get_reply_fds
int* xcb_get_reply_fds(xcb_connection_t* c, void* reply, size_t replylen)

@brief Don't use this, only needed by the generated code. @param c: The connection to the X server. @param reply: A reply that was received from the server @param replylen: The size of the reply. @return Pointer to the location where received file descriptors are stored.

xcb_poll_for_reply
int xcb_poll_for_reply(xcb_connection_t* c, uint request, void** reply, xcb_generic_error_t** error)

@brief Poll for the reply of a given request. @param c: The connection to the X server. @param request: Sequence number of the request as returned by xcb_send_request(). @param reply: Location to store the reply in, must not be NULL. @param e: Location to store errors in, or NULL. Ignored for unchecked requests. @return 1 when the reply to the request was returned, else 0.

xcb_poll_for_reply64
int xcb_poll_for_reply64(xcb_connection_t* c, ulong request, void** reply, xcb_generic_error_t** error)

@brief Poll for the reply of a given request, with 64-bit sequence number. @param c: The connection to the X server. @param request: 64-bit sequence number of the request as returned by xcb_send_request(). @param reply: Location to store the reply in, must not be NULL. @param e: Location to store errors in, or NULL. Ignored for unchecked requests. @return 1 when the reply to the request was returned, else 0.

xcb_popcount
int xcb_popcount(uint mask)

@param mask: The mask to check @return The number of set bits in the mask

xcb_send_fd
void xcb_send_fd(xcb_connection_t* c, int fd)

@brief Send a file descriptor to the server in the next call to xcb_send_request. @param c: The connection to the X server. @param fd: The file descriptor to send.

xcb_send_request
uint xcb_send_request(xcb_connection_t* c, int flags, iovec* vector, const(xcb_protocol_request_t)* request)

@brief Send a request to the server. @param c: The connection to the X server. @param flags: A combination of flags from the xcb_send_request_flags_t enumeration. @param vector: Data to send; must have two iovecs before start for internal use. @param request: Information about the request to be sent. @return The request's sequence number on success, 0 otherwise.

xcb_send_request64
ulong xcb_send_request64(xcb_connection_t* c, int flags, iovec* vector, const(xcb_protocol_request_t)* request)

@brief Send a request to the server, with 64-bit sequence number returned. @param c: The connection to the X server. @param flags: A combination of flags from the xcb_send_request_flags_t enumeration. @param vector: Data to send; must have two iovecs before start for internal use. @param request: Information about the request to be sent. @return The request's sequence number on success, 0 otherwise.

xcb_sumof
int xcb_sumof(ubyte* list, int len)

@param list: The base of an array @param len: The length of the array @return The sum of all entries in the array.

xcb_wait_for_reply
void* xcb_wait_for_reply(xcb_connection_t* c, uint request, xcb_generic_error_t** e)

@brief Wait for the reply of a given request. @param c: The connection to the X server. @param request: Sequence number of the request as returned by xcb_send_request(). @param e: Location to store errors in, or NULL. Ignored for unchecked requests.

xcb_wait_for_reply64
void* xcb_wait_for_reply64(xcb_connection_t* c, ulong request, xcb_generic_error_t** e)

@brief Wait for the reply of a given request, with 64-bit sequence number @param c: The connection to the X server. @param request: 64-bit sequence number of the request as returned by xcb_send_request64(). @param e: Location to store errors in, or NULL. Ignored for unchecked requests.

xcb_writev
int xcb_writev(xcb_connection_t* c, iovec* vector, int count, ulong requests)

@brief Send raw data to the X server. @param c: The connection to the X server. @param vector: Array of data to be sent. @param count: Number of entries in @p vector. @param requests: Number of requests that are being sent. @return 1 on success, else 0.

Meta