XCB  1.13.1
xcb_windefs.h
1 /* Copyright (C) 2009 Jatin Golani.
2  *
3  * Permission is hereby granted, free of charge, to any person obtaining a
4  * copy of this software and associated documentation files (the "Software"),
5  * to deal in the Software without restriction, including without limitation
6  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
7  * and/or sell copies of the Software, and to permit persons to whom the
8  * Software is furnished to do so, subject to the following conditions:
9  *
10  * The above copyright notice and this permission notice shall be included in
11  * all copies or substantial portions of the Software.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16  * AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
17  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19  *
20  * Except as contained in this notice, the names of the authors or their
21  * institutions shall not be used in advertising or otherwise to promote the
22  * sale, use or other dealings in this Software without prior written
23  * authorization from the authors.
24  */
25 
26 
27 #ifndef _XCB_WINDEFS_H
28 #define _XCB_WINDEFS_H
29 
30 #ifndef WINVER
31 #define WINVER 0x0501 /* required for getaddrinfo/freeaddrinfo defined only for WinXP and above */
32 #endif
33 
34 #include <winsock2.h>
35 #include <ws2tcpip.h>
36 #include <windef.h>
37 
38 struct iovec {
39  void *iov_base; /* Pointer to data. */
40  int iov_len; /* Length of data. */
41 };
42 
43 typedef unsigned int in_addr_t;
44 
45 #endif /* xcb_windefs.h */
_xcb_in
Definition: xcbint.h:128
xcb_setup_request_t
xcb_setup_request_t
Definition: xproto.h:410
special_list
Definition: xcb_in.c:100
xcb_poll_for_event
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
xcb_big_requests_enable
xcb_big_requests_enable_cookie_t xcb_big_requests_enable(xcb_connection_t *c)
Definition: bigreq.c:21
xcb_special_event
Definition: xcb_in.c:64
xcb_generic_reply_t
Generic reply.
Definition: xcb.h:125
xcb_poll_for_queued_event
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
X_TCP_PORT
#define X_TCP_PORT
Definition: xcb.h:72
xcb_get_setup
const xcb_setup_t * xcb_get_setup(xcb_connection_t *c)
Access the data returned by the server.
Definition: xcb_conn.c:309
xcb_generic_reply_t::pad0
uint8_t pad0
Definition: xcb.h:127
xcb_connect_to_display_with_auth_info
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:492
xcb_setup_generic_t
Definition: xcb_conn.c:61
XCB_CONN_CLOSED_PARSE_ERR
#define XCB_CONN_CLOSED_PARSE_ERR
Definition: xcb.h:87
xcb_connect
xcb_connection_t * xcb_connect(const char *displayname, int *screenp)
Connects to the X server.
Definition: xcb_util.c:487
xcb_discard_reply
void xcb_discard_reply(xcb_connection_t *c, unsigned int sequence)
Discards the reply for a request.
Definition: xcb_in.c:623
xcb_request_check
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
node
Definition: xcb_list.c:37
xcb_discard_reply64
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
xcb_get_file_descriptor
int xcb_get_file_descriptor(xcb_connection_t *c)
Access the file descriptor of the connection.
Definition: xcb_conn.c:317
xcb_flush
int xcb_flush(xcb_connection_t *c)
Forces any buffered output to be written to the server.
Definition: xcb_out.c:417
X_PROTOCOL
#define X_PROTOCOL
Definition: xcb.h:66
xcb_parse_display
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:212
xcb_prefetch_maximum_request_length
void xcb_prefetch_maximum_request_length(xcb_connection_t *c)
Prefetch the maximum request length without blocking.
Definition: xcb_out.c:135
xcb_generic_reply_t::response_type
uint8_t response_type
Definition: xcb.h:126
xcb_setup_failed_t
xcb_setup_failed_t
Definition: xproto.h:432
XCB_KEYMAP_NOTIFY
#define XCB_KEYMAP_NOTIFY
Definition: xproto.h:699
xcb_generic_event_t
Generic event.
Definition: xcb.h:137
xcb_connect_to_fd
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
xcb_auth_info_t
Container for authorization information.
Definition: xcb.h:228
xcb_connection_t
Definition: xcbint.h:195
XCB_CONN_CLOSED_MEM_INSUFFICIENT
#define XCB_CONN_CLOSED_MEM_INSUFFICIENT
Definition: xcb.h:81
pending_reply
Definition: xcb_in.c:86
xcb_generic_reply_t::length
uint32_t length
Definition: xcb.h:129
XCB_CONN_CLOSED_FDPASSING_FAILED
#define XCB_CONN_CLOSED_FDPASSING_FAILED
Definition: xcb.h:93
xcb_disconnect
void xcb_disconnect(xcb_connection_t *c)
Closes the connection.
Definition: xcb_conn.c:371
xcb_unregister_for_special_event
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
lazyreply
Definition: xcb_ext.c:39
xcb_generic_error_t
Generic error.
Definition: xcb.h:182
xcb_poll_for_special_event
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
xcb_generic_reply_t::sequence
uint16_t sequence
Definition: xcb.h:128
XCB_CONN_CLOSED_EXT_NOTSUPPORTED
#define XCB_CONN_CLOSED_EXT_NOTSUPPORTED
Definition: xcb.h:78
XCB_CONN_ERROR
#define XCB_CONN_ERROR
Definition: xcb.h:75
xcb_auth_info_t::datalen
int datalen
Definition: xcb.h:231
xcb_setup_request_t
struct xcb_setup_request_t xcb_setup_request_t
xcb_setup_request_t
iovec
Definition: xcb_windefs.h:38
xcb.h
reader_list
Definition: xcb_in.c:94
X_PROTOCOL_REVISION
#define X_PROTOCOL_REVISION
Definition: xcb.h:69
event_list
Definition: xcb_in.c:59
xcb_register_for_special_xge
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
xcb_setup_authenticate_t
xcb_setup_authenticate_t
Definition: xproto.h:452
xcb_big_requests_enable_reply
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
xcb_auth_info_t::name
char * name
Definition: xcb.h:230
_xcb_out
Definition: xcbint.h:92
xcb_query_extension_reply_t
xcb_query_extension_reply_t
Definition: xproto.h:4287
xcb_extension_t
Definition: xcbext.h:39
XCB_CONN_CLOSED_INVALID_SCREEN
#define XCB_CONN_CLOSED_INVALID_SCREEN
Definition: xcb.h:90
reply_list
Definition: xcb_in.c:81
_xcb_map
Definition: xcb_list.c:43
xcb_query_extension
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_wait_for_special_event
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
xcb_auth_info_t::namelen
int namelen
Definition: xcb.h:229
xcb_auth_info_t::data
char * data
Definition: xcb.h:232
xcb_setup_t
xcb_setup_t
Definition: xproto.h:475
xcb_protocol_request_t
Definition: xcbext.h:47
xcb_get_maximum_request_length
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
xcb_query_extension_reply
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
xcb_get_extension_data
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
xcb_connection_has_error
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_CONN_CLOSED_REQ_LEN_EXCEED
#define XCB_CONN_CLOSED_REQ_LEN_EXCEED
Definition: xcb.h:84
xcb_ge_special_event_t
Definition: xcb_in.c:130
xcb_wait_for_event
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
xcb_prefetch_extension_data
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
xcb_big_requests_enable_reply_t
Definition: bigreq.h:48