jpayne@69: /* jpayne@69: * This file generated automatically from res.xml by c_client.py. jpayne@69: * Edit at your peril. jpayne@69: */ jpayne@69: jpayne@69: /** jpayne@69: * @defgroup XCB_Res_API XCB Res API jpayne@69: * @brief Res XCB Protocol Implementation. jpayne@69: * @{ jpayne@69: **/ jpayne@69: jpayne@69: #ifndef __RES_H jpayne@69: #define __RES_H jpayne@69: jpayne@69: #include "xcb.h" jpayne@69: #include "xproto.h" jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: extern "C" { jpayne@69: #endif jpayne@69: jpayne@69: #define XCB_RES_MAJOR_VERSION 1 jpayne@69: #define XCB_RES_MINOR_VERSION 2 jpayne@69: jpayne@69: extern xcb_extension_t xcb_res_id; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_t { jpayne@69: uint32_t resource_base; jpayne@69: uint32_t resource_mask; jpayne@69: } xcb_res_client_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_iterator_t { jpayne@69: xcb_res_client_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_client_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_type_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_type_t { jpayne@69: xcb_atom_t resource_type; jpayne@69: uint32_t count; jpayne@69: } xcb_res_type_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_type_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_type_iterator_t { jpayne@69: xcb_res_type_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_type_iterator_t; jpayne@69: jpayne@69: typedef enum xcb_res_client_id_mask_t { jpayne@69: XCB_RES_CLIENT_ID_MASK_CLIENT_XID = 1, jpayne@69: XCB_RES_CLIENT_ID_MASK_LOCAL_CLIENT_PID = 2 jpayne@69: } xcb_res_client_id_mask_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_id_spec_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_id_spec_t { jpayne@69: uint32_t client; jpayne@69: uint32_t mask; jpayne@69: } xcb_res_client_id_spec_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_id_spec_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_id_spec_iterator_t { jpayne@69: xcb_res_client_id_spec_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_client_id_spec_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_id_value_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_id_value_t { jpayne@69: xcb_res_client_id_spec_t spec; jpayne@69: uint32_t length; jpayne@69: } xcb_res_client_id_value_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_client_id_value_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_client_id_value_iterator_t { jpayne@69: xcb_res_client_id_value_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_client_id_value_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_id_spec_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_id_spec_t { jpayne@69: uint32_t resource; jpayne@69: uint32_t type; jpayne@69: } xcb_res_resource_id_spec_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_id_spec_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_id_spec_iterator_t { jpayne@69: xcb_res_resource_id_spec_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_resource_id_spec_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_size_spec_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_size_spec_t { jpayne@69: xcb_res_resource_id_spec_t spec; jpayne@69: uint32_t bytes; jpayne@69: uint32_t ref_count; jpayne@69: uint32_t use_count; jpayne@69: } xcb_res_resource_size_spec_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_size_spec_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_size_spec_iterator_t { jpayne@69: xcb_res_resource_size_spec_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_resource_size_spec_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_size_value_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_size_value_t { jpayne@69: xcb_res_resource_size_spec_t size; jpayne@69: uint32_t num_cross_references; jpayne@69: } xcb_res_resource_size_value_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_resource_size_value_iterator_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_resource_size_value_iterator_t { jpayne@69: xcb_res_resource_size_value_t *data; jpayne@69: int rem; jpayne@69: int index; jpayne@69: } xcb_res_resource_size_value_iterator_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_version_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_version_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_version_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_version. */ jpayne@69: #define XCB_RES_QUERY_VERSION 0 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_version_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_version_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint8_t client_major; jpayne@69: uint8_t client_minor; jpayne@69: } xcb_res_query_version_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_version_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_version_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint16_t server_major; jpayne@69: uint16_t server_minor; jpayne@69: } xcb_res_query_version_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_clients_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_clients_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_clients_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_clients. */ jpayne@69: #define XCB_RES_QUERY_CLIENTS 1 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_clients_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_clients_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: } xcb_res_query_clients_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_clients_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_clients_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num_clients; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_res_query_clients_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_resources_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_resources_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_client_resources_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_client_resources. */ jpayne@69: #define XCB_RES_QUERY_CLIENT_RESOURCES 2 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_resources_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_resources_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t xid; jpayne@69: } xcb_res_query_client_resources_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_resources_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_resources_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num_types; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_res_query_client_resources_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_pixmap_bytes_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_pixmap_bytes_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_client_pixmap_bytes_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_client_pixmap_bytes. */ jpayne@69: #define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_pixmap_bytes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_pixmap_bytes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t xid; jpayne@69: } xcb_res_query_client_pixmap_bytes_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_pixmap_bytes_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_pixmap_bytes_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t bytes; jpayne@69: uint32_t bytes_overflow; jpayne@69: } xcb_res_query_client_pixmap_bytes_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_ids_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_ids_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_client_ids_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_client_ids. */ jpayne@69: #define XCB_RES_QUERY_CLIENT_IDS 4 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_ids_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_ids_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t num_specs; jpayne@69: } xcb_res_query_client_ids_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_client_ids_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_client_ids_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num_ids; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_res_query_client_ids_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_resource_bytes_cookie_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_resource_bytes_cookie_t { jpayne@69: unsigned int sequence; jpayne@69: } xcb_res_query_resource_bytes_cookie_t; jpayne@69: jpayne@69: /** Opcode for xcb_res_query_resource_bytes. */ jpayne@69: #define XCB_RES_QUERY_RESOURCE_BYTES 5 jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_resource_bytes_request_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_resource_bytes_request_t { jpayne@69: uint8_t major_opcode; jpayne@69: uint8_t minor_opcode; jpayne@69: uint16_t length; jpayne@69: uint32_t client; jpayne@69: uint32_t num_specs; jpayne@69: } xcb_res_query_resource_bytes_request_t; jpayne@69: jpayne@69: /** jpayne@69: * @brief xcb_res_query_resource_bytes_reply_t jpayne@69: **/ jpayne@69: typedef struct xcb_res_query_resource_bytes_reply_t { jpayne@69: uint8_t response_type; jpayne@69: uint8_t pad0; jpayne@69: uint16_t sequence; jpayne@69: uint32_t length; jpayne@69: uint32_t num_sizes; jpayne@69: uint8_t pad1[20]; jpayne@69: } xcb_res_query_resource_bytes_reply_t; jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_client_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_client_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_client_next (xcb_res_client_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_client_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_client_end (xcb_res_client_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_type_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_type_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_type_next (xcb_res_type_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_type_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_type_end (xcb_res_type_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_client_id_spec_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_client_id_spec_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_client_id_spec_next (xcb_res_client_id_spec_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_client_id_spec_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_client_id_spec_end (xcb_res_client_id_spec_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_res_client_id_value_sizeof (const void *_buffer); jpayne@69: jpayne@69: uint32_t * jpayne@69: xcb_res_client_id_value_value (const xcb_res_client_id_value_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_res_client_id_value_value_length (const xcb_res_client_id_value_t *R); jpayne@69: jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_client_id_value_value_end (const xcb_res_client_id_value_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_client_id_value_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_client_id_value_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_client_id_value_next (xcb_res_client_id_value_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_client_id_value_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_client_id_value_end (xcb_res_client_id_value_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_resource_id_spec_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_resource_id_spec_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_resource_id_spec_next (xcb_res_resource_id_spec_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_resource_id_spec_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_resource_id_spec_end (xcb_res_resource_id_spec_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_resource_size_spec_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_resource_size_spec_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_resource_size_spec_next (xcb_res_resource_size_spec_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_resource_size_spec_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_resource_size_spec_end (xcb_res_resource_size_spec_iterator_t i); jpayne@69: jpayne@69: int jpayne@69: xcb_res_resource_size_value_sizeof (const void *_buffer); jpayne@69: jpayne@69: xcb_res_resource_size_spec_t * jpayne@69: xcb_res_resource_size_value_cross_references (const xcb_res_resource_size_value_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_res_resource_size_value_cross_references_length (const xcb_res_resource_size_value_t *R); jpayne@69: jpayne@69: xcb_res_resource_size_spec_iterator_t jpayne@69: xcb_res_resource_size_value_cross_references_iterator (const xcb_res_resource_size_value_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Get the next element of the iterator jpayne@69: * @param i Pointer to a xcb_res_resource_size_value_iterator_t jpayne@69: * jpayne@69: * Get the next element in the iterator. The member rem is jpayne@69: * decreased by one. The member data points to the next jpayne@69: * element. The member index is increased by sizeof(xcb_res_resource_size_value_t) jpayne@69: */ jpayne@69: void jpayne@69: xcb_res_resource_size_value_next (xcb_res_resource_size_value_iterator_t *i); jpayne@69: jpayne@69: /** jpayne@69: * Return the iterator pointing to the last element jpayne@69: * @param i An xcb_res_resource_size_value_iterator_t jpayne@69: * @return The iterator pointing to the last element jpayne@69: * jpayne@69: * Set the current element in the iterator to the last element. jpayne@69: * The member rem is set to 0. The member data points to the jpayne@69: * last element. jpayne@69: */ jpayne@69: xcb_generic_iterator_t jpayne@69: xcb_res_resource_size_value_end (xcb_res_resource_size_value_iterator_t i); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_version_cookie_t jpayne@69: xcb_res_query_version (xcb_connection_t *c, jpayne@69: uint8_t client_major, jpayne@69: uint8_t client_minor); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_version_cookie_t jpayne@69: xcb_res_query_version_unchecked (xcb_connection_t *c, jpayne@69: uint8_t client_major, jpayne@69: uint8_t client_minor); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_version_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_version_reply_t * jpayne@69: xcb_res_query_version_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_version_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_clients_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_clients_cookie_t jpayne@69: xcb_res_query_clients (xcb_connection_t *c); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_clients_cookie_t jpayne@69: xcb_res_query_clients_unchecked (xcb_connection_t *c); jpayne@69: jpayne@69: xcb_res_client_t * jpayne@69: xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R); jpayne@69: jpayne@69: xcb_res_client_iterator_t jpayne@69: xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_clients_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_clients_reply_t * jpayne@69: xcb_res_query_clients_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_clients_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_client_resources_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_client_resources_cookie_t jpayne@69: xcb_res_query_client_resources (xcb_connection_t *c, jpayne@69: uint32_t xid); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_client_resources_cookie_t jpayne@69: xcb_res_query_client_resources_unchecked (xcb_connection_t *c, jpayne@69: uint32_t xid); jpayne@69: jpayne@69: xcb_res_type_t * jpayne@69: xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R); jpayne@69: jpayne@69: xcb_res_type_iterator_t jpayne@69: xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_client_resources_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_client_resources_reply_t * jpayne@69: xcb_res_query_client_resources_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_client_resources_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_client_pixmap_bytes_cookie_t jpayne@69: xcb_res_query_client_pixmap_bytes (xcb_connection_t *c, jpayne@69: uint32_t xid); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_client_pixmap_bytes_cookie_t jpayne@69: xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c, jpayne@69: uint32_t xid); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_client_pixmap_bytes_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_client_pixmap_bytes_reply_t * jpayne@69: xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_client_ids_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_client_ids_cookie_t jpayne@69: xcb_res_query_client_ids (xcb_connection_t *c, jpayne@69: uint32_t num_specs, jpayne@69: const xcb_res_client_id_spec_t *specs); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_client_ids_cookie_t jpayne@69: xcb_res_query_client_ids_unchecked (xcb_connection_t *c, jpayne@69: uint32_t num_specs, jpayne@69: const xcb_res_client_id_spec_t *specs); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_client_ids_ids_length (const xcb_res_query_client_ids_reply_t *R); jpayne@69: jpayne@69: xcb_res_client_id_value_iterator_t jpayne@69: xcb_res_query_client_ids_ids_iterator (const xcb_res_query_client_ids_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_client_ids_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_client_ids_reply_t * jpayne@69: xcb_res_query_client_ids_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_client_ids_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_resource_bytes_sizeof (const void *_buffer); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: */ jpayne@69: xcb_res_query_resource_bytes_cookie_t jpayne@69: xcb_res_query_resource_bytes (xcb_connection_t *c, jpayne@69: uint32_t client, jpayne@69: uint32_t num_specs, jpayne@69: const xcb_res_resource_id_spec_t *specs); jpayne@69: jpayne@69: /** jpayne@69: * jpayne@69: * @param c The connection jpayne@69: * @return A cookie jpayne@69: * jpayne@69: * Delivers a request to the X server. jpayne@69: * jpayne@69: * This form can be used only if the request will cause jpayne@69: * a reply to be generated. Any returned error will be jpayne@69: * placed in the event queue. jpayne@69: */ jpayne@69: xcb_res_query_resource_bytes_cookie_t jpayne@69: xcb_res_query_resource_bytes_unchecked (xcb_connection_t *c, jpayne@69: uint32_t client, jpayne@69: uint32_t num_specs, jpayne@69: const xcb_res_resource_id_spec_t *specs); jpayne@69: jpayne@69: int jpayne@69: xcb_res_query_resource_bytes_sizes_length (const xcb_res_query_resource_bytes_reply_t *R); jpayne@69: jpayne@69: xcb_res_resource_size_value_iterator_t jpayne@69: xcb_res_query_resource_bytes_sizes_iterator (const xcb_res_query_resource_bytes_reply_t *R); jpayne@69: jpayne@69: /** jpayne@69: * Return the reply jpayne@69: * @param c The connection jpayne@69: * @param cookie The cookie jpayne@69: * @param e The xcb_generic_error_t supplied jpayne@69: * jpayne@69: * Returns the reply of the request asked by jpayne@69: * jpayne@69: * The parameter @p e supplied to this function must be NULL if jpayne@69: * xcb_res_query_resource_bytes_unchecked(). is used. jpayne@69: * Otherwise, it stores the error if any. jpayne@69: * jpayne@69: * The returned value must be freed by the caller using free(). jpayne@69: */ jpayne@69: xcb_res_query_resource_bytes_reply_t * jpayne@69: xcb_res_query_resource_bytes_reply (xcb_connection_t *c, jpayne@69: xcb_res_query_resource_bytes_cookie_t cookie /**< */, jpayne@69: xcb_generic_error_t **e); jpayne@69: jpayne@69: jpayne@69: #ifdef __cplusplus jpayne@69: } jpayne@69: #endif jpayne@69: jpayne@69: #endif jpayne@69: jpayne@69: /** jpayne@69: * @} jpayne@69: */