Go to the documentation of this file.
30 #include <sys/types.h>
32 #if defined(__solaris__)
41 #include "xcb_windefs.h"
54 #define XCB_PACKED __attribute__((__packed__))
69 #define X_PROTOCOL_REVISION 0
72 #define X_TCP_PORT 6000
75 #define XCB_CONN_ERROR 1
78 #define XCB_CONN_CLOSED_EXT_NOTSUPPORTED 2
81 #define XCB_CONN_CLOSED_MEM_INSUFFICIENT 3
84 #define XCB_CONN_CLOSED_REQ_LEN_EXCEED 4
87 #define XCB_CONN_CLOSED_PARSE_ERR 5
90 #define XCB_CONN_CLOSED_INVALID_SCREEN 6
93 #define XCB_CONN_CLOSED_FDPASSING_FAILED 7
95 #define XCB_TYPE_PAD(T,I) (-(I) & (sizeof(T) > 4 ? 3 : sizeof(T) - 1))
186 uint32_t resource_id;
212 #define XCB_COPY_FROM_PARENT 0L
215 #define XCB_CURRENT_TIME 0L
218 #define XCB_NO_SYMBOL 0L
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:720
Generic reply.
Definition: xcb.h:125
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:725
const struct xcb_setup_t * xcb_get_setup(xcb_connection_t *c)
Access the data returned by the server.
Definition: xcb_conn.c:309
uint8_t pad0
Definition: xcb.h:127
xcb_connection_t * xcb_connect_to_display_with_auth_info(const char *display, xcb_auth_info_t *auth, int *screen)
Connects to the X server, using an authorization information.
Definition: xcb_util.c:492
uint8_t major_code
Definition: xcb.h:188
xcb_connection_t * xcb_connect(const char *displayname, int *screenp)
Connects to the X server.
Definition: xcb_util.c:487
void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence)
Discards the reply for a request.
Definition: xcb_in.c:623
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:730
struct xcb_auth_info_t xcb_auth_info_t
Container for authorization information.
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:637
int xcb_get_file_descriptor(xcb_connection_t *c)
Access the file descriptor of the connection.
Definition: xcb_conn.c:317
int xcb_flush(xcb_connection_t *c)
Forces any buffered output to be written to the server.
Definition: xcb_out.c:417
int xcb_parse_display(const char *name, char **host, int *display, int *screen)
Parses a display string name in the form documented by X(7x).
Definition: xcb_util.c:212
void xcb_prefetch_maximum_request_length(xcb_connection_t *c)
Prefetch the maximum request length without blocking.
Definition: xcb_out.c:135
uint8_t response_type
Definition: xcb.h:126
uint16_t sequence
Definition: xcb.h:185
uint16_t minor_code
Definition: xcb.h:187
Generic event.
Definition: xcb.h:137
xcb_connection_t * xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info)
Connects to the X server.
Definition: xcb_conn.c:331
uint16_t sequence
Definition: xcb.h:153
Container for authorization information.
Definition: xcb.h:228
uint8_t pad0
Definition: xcb.h:168
void * data
Definition: xcb.h:115
uint32_t length
Definition: xcb.h:129
uint8_t response_type
Definition: xcb.h:151
void xcb_disconnect(xcb_connection_t *c)
Closes the connection.
Definition: xcb_conn.c:371
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:849
uint8_t response_type
Definition: xcb.h:138
Generic error.
Definition: xcb.h:182
Raw Generic event.
Definition: xcb.h:150
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:766
uint16_t sequence
Definition: xcb.h:128
GE event.
Definition: xcb.h:166
uint32_t full_sequence
Definition: xcb.h:191
unsigned int sequence
Definition: xcb.h:200
int datalen
Definition: xcb.h:231
uint32_t xcb_generate_id(xcb_connection_t *c)
Allocates an XID for a new object.
Definition: xcb_xid.c:41
uint16_t sequence
Definition: xcb.h:140
uint16_t sequence
Definition: xcb.h:169
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:806
char * name
Definition: xcb.h:230
xcb_query_extension_reply_t
Definition: xproto.h:4287
int index
Definition: xcb.h:117
int rem
Definition: xcb.h:116
uint8_t error_code
Definition: xcb.h:184
uint8_t response_type
Definition: xcb.h:183
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:781
int namelen
Definition: xcb.h:229
Generic iterator.
Definition: xcb.h:114
char * data
Definition: xcb.h:232
xcb_setup_t
Definition: xproto.h:475
uint8_t pad0
Definition: xcb.h:189
uint8_t response_type
Definition: xcb.h:167
uint32_t full_sequence
Definition: xcb.h:142
uint32_t xcb_get_maximum_request_length(xcb_connection_t *c)
Returns the maximum request length that this server accepts.
Definition: xcb_out.c:158
uint32_t full_sequence
Definition: xcb.h:174
const struct 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:199
uint8_t pad0
Definition: xcb.h:152
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:325
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:689
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
uint8_t pad0
Definition: xcb.h:139