projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xcb_open: Minor code cleanup for better readability
[free-sw/xcb/libxcb]
/
src
/
xcb.h
diff --git
a/src/xcb.h
b/src/xcb.h
index
e62c985
..
c17a2ef
100644
(file)
--- a/
src/xcb.h
+++ b/
src/xcb.h
@@
-51,6
+51,8
@@
extern "C" {
* @file xcb.h
*/
* @file xcb.h
*/
+#define XCB_PACKED __attribute__((__packed__))
+
/**
* @defgroup XCB_Core_API XCB Core API
* @brief Core API of the XCB library.
/**
* @defgroup XCB_Core_API XCB Core API
* @brief Core API of the XCB library.
@@
-317,7
+319,7
@@
typedef struct xcb_special_event xcb_special_event_t;
*/
xcb_generic_event_t *xcb_poll_for_special_event(xcb_connection_t *c,
xcb_special_event_t *se);
*/
xcb_generic_event_t *xcb_poll_for_special_event(xcb_connection_t *c,
xcb_special_event_t *se);
-
+
/**
* @brief Returns the next event from a special queue, blocking until one arrives
*/
/**
* @brief Returns the next event from a special queue, blocking until one arrives
*/
@@
-328,7
+330,6
@@
xcb_generic_event_t *xcb_wait_for_special_event(xcb_connection_t *c,
*/
typedef struct xcb_extension_t xcb_extension_t; /**< Opaque structure used as key for xcb_get_extension_data_t. */
*/
typedef struct xcb_extension_t xcb_extension_t; /**< Opaque structure used as key for xcb_get_extension_data_t. */
-
/**
* @brief Listen for a special event
*/
/**
* @brief Listen for a special event
*/
@@
-482,7
+483,7
@@
xcb_connection_t *xcb_connect_to_fd(int fd, xcb_auth_info_t *auth_info);
* @param c: The connection.
*
* Closes the file descriptor and frees all memory associated with the
* @param c: The connection.
*
* Closes the file descriptor and frees all memory associated with the
- * connection @c c.
+ * connection @c c.
If @p c is @c NULL, nothing is done.
*/
void xcb_disconnect(xcb_connection_t *c);
*/
void xcb_disconnect(xcb_connection_t *c);