27 #ifndef _XCB_WINDEFS_H
28 #define _XCB_WINDEFS_H
43 typedef unsigned int in_addr_t;
xcb_setup_request_t
Definition: xproto.h:410
xcb_generic_event_t * xcb_poll_for_event(xcb_connection_t *c)
Returns the next event or error from the server.
Definition: xcb_in.c:726
xcb_big_requests_enable_cookie_t xcb_big_requests_enable(xcb_connection_t *c)
Definition: bigreq.c:21
Generic reply.
Definition: xcb.h:129
xcb_generic_event_t * xcb_poll_for_queued_event(xcb_connection_t *c)
Returns the next event without reading from the connection.
Definition: xcb_in.c:731
xcb_query_extension_cookie_t
Definition: xproto.h:4266
#define X_TCP_PORT
Definition: xcb.h:76
uint64_t xcb_total_read(xcb_connection_t *c)
Obtain number of bytes read from the connection.
Definition: xcb_conn.c:579
const xcb_setup_t * xcb_get_setup(xcb_connection_t *c)
Access the data returned by the server.
Definition: xcb_conn.c:348
uint8_t pad0
Definition: xcb.h:131
xcb_connection_t * xcb_connect_to_display_with_auth_info(const char *displayname, xcb_auth_info_t *auth, int *screenp)
Connects to the X server, using an authorization information.
Definition: xcb_util.c:499
Definition: xcb_conn.c:62
#define XCB_CONN_CLOSED_PARSE_ERR
Definition: xcb.h:91
xcb_connection_t * xcb_connect(const char *displayname, int *screenp)
Connects to the X server.
Definition: xcb_util.c:494
void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence)
Discards the reply for a request.
Definition: xcb_in.c:629
xcb_generic_error_t * xcb_request_check(xcb_connection_t *c, xcb_void_cookie_t cookie)
Return the error for a request, or NULL if none can ever arrive.
Definition: xcb_in.c:736
Definition: xcb_list.c:37
void xcb_discard_reply64(xcb_connection_t *c, uint64_t sequence)
Discards the reply for a request, given by a 64bit sequence number.
Definition: xcb_in.c:643
int xcb_get_file_descriptor(xcb_connection_t *c)
Access the file descriptor of the connection.
Definition: xcb_conn.c:356
int xcb_flush(xcb_connection_t *c)
Forces any buffered output to be written to the server.
Definition: xcb_out.c:421
#define X_PROTOCOL
Definition: xcb.h:70
int xcb_parse_display(const char *name, char **host, int *displayp, int *screenp)
Parses a display string name in the form documented by X(7x).
Definition: xcb_util.c:215
void xcb_prefetch_maximum_request_length(xcb_connection_t *c)
Prefetch the maximum request length without blocking.
Definition: xcb_out.c:139
uint8_t response_type
Definition: xcb.h:130
xcb_setup_failed_t
Definition: xproto.h:432
#define XCB_KEYMAP_NOTIFY
Definition: xproto.h:699
Generic event.
Definition: xcb.h:141
xcb_connection_t * xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info)
Connects to the X server.
Definition: xcb_conn.c:370
Container for authorization information.
Definition: xcb.h:232
#define XCB_CONN_CLOSED_MEM_INSUFFICIENT
Definition: xcb.h:85
uint32_t length
Definition: xcb.h:133
#define XCB_CONN_CLOSED_FDPASSING_FAILED
Definition: xcb.h:97
void xcb_disconnect(xcb_connection_t *c)
Closes the connection.
Definition: xcb_conn.c:414
void xcb_unregister_for_special_event(xcb_connection_t *c, xcb_special_event_t *se)
Stop listening for a special event.
Definition: xcb_in.c:860
Generic error.
Definition: xcb.h:186
xcb_generic_event_t * xcb_poll_for_special_event(xcb_connection_t *c, xcb_special_event_t *se)
Returns the next event from a special queue.
Definition: xcb_in.c:777
uint16_t sequence
Definition: xcb.h:132
unsigned int sequence
Definition: xcb.h:204
#define XCB_CONN_CLOSED_EXT_NOTSUPPORTED
Definition: xcb.h:82
#define XCB_CONN_ERROR
Definition: xcb.h:79
int datalen
Definition: xcb.h:235
Definition: xcb_windefs.h:38
#define X_PROTOCOL_REVISION
Definition: xcb.h:73
xcb_special_event_t * xcb_register_for_special_xge(xcb_connection_t *c, xcb_extension_t *ext, uint32_t eid, uint32_t *stamp)
Listen for a special event.
Definition: xcb_in.c:817
xcb_setup_authenticate_t
Definition: xproto.h:452
xcb_big_requests_enable_reply_t * xcb_big_requests_enable_reply(xcb_connection_t *c, xcb_big_requests_enable_cookie_t cookie, xcb_generic_error_t **e)
Definition: bigreq.c:69
uint64_t xcb_total_written(xcb_connection_t *c)
Obtain number of bytes written to the connection.
Definition: xcb_conn.c:592
char * name
Definition: xcb.h:234
xcb_query_extension_reply_t
Definition: xproto.h:4287
#define XCB_CONN_CLOSED_INVALID_SCREEN
Definition: xcb.h:94
Definition: xcb_list.c:43
xcb_query_extension_cookie_t xcb_query_extension(xcb_connection_t *c, uint16_t name_len, const char *name)
check if extension is present
Definition: xproto.c:12248
xcb_generic_event_t * xcb_wait_for_special_event(xcb_connection_t *c, xcb_special_event_t *se)
Returns the next event from a special queue, blocking until one arrives.
Definition: xcb_in.c:792
int namelen
Definition: xcb.h:233
char * data
Definition: xcb.h:236
xcb_setup_t
Definition: xproto.h:475
uint32_t xcb_get_maximum_request_length(xcb_connection_t *c)
Returns the maximum request length that this server accepts.
Definition: xcb_out.c:162
xcb_query_extension_reply_t * xcb_query_extension_reply(xcb_connection_t *c, xcb_query_extension_cookie_t cookie, xcb_generic_error_t **e)
Definition: xproto.c:12316
const xcb_query_extension_reply_t * xcb_get_extension_data(xcb_connection_t *c, xcb_extension_t *ext)
Caches reply information from QueryExtension requests.
Definition: xcb_ext.c:88
Generic cookie.
Definition: xcb.h:203
int xcb_connection_has_error(xcb_connection_t *c)
Test whether the connection has shut down due to a fatal error.
Definition: xcb_conn.c:364
#define XCB_CONN_CLOSED_REQ_LEN_EXCEED
Definition: xcb.h:88
xcb_generic_event_t * xcb_wait_for_event(xcb_connection_t *c)
Returns the next event or error from the server.
Definition: xcb_in.c:695
void xcb_prefetch_extension_data(xcb_connection_t *c, xcb_extension_t *ext)
Prefetch of extension data into the extension cache.
Definition: xcb_ext.c:106
xcb_big_requests_enable_reply_t
Definition: bigreq.h:48