X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb.h;h=eaab47f2d5d5a0dadf910f26dd0b8d8b729aaf13;hb=9e10819a678970928c9f9a1fffb4ba00f5ac7c57;hp=15c5768dc3cf54b1a734b49e119bec677df7e64a;hpb=9691890529fddc051c15e191a8a5f06017514c1c;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb.h b/src/xcb.h index 15c5768..eaab47f 100644 --- a/src/xcb.h +++ b/src/xcb.h @@ -224,12 +224,10 @@ xcb_generic_event_t *xcb_wait_for_event(xcb_connection_t *c); * Returns the next event or error from the server, if one is * available, or returns @c NULL otherwise. If no event is available, that * might be because an I/O error like connection close occurred while - * attempting to read the next event. The @p error parameter is a - * pointer to an int to be filled in with the I/O error status of the - * operation. If @p error is @c NULL, terminates the application when an - * I/O error occurs. + * attempting to read the next event, in which case the connection is + * shut down when this function returns. */ -xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c, int *error); +xcb_generic_event_t *xcb_poll_for_event(xcb_connection_t *c); /** * @brief Return the error for a request, or NULL if none can ever arrive. @@ -410,6 +408,11 @@ xcb_connection_t *xcb_connect(const char *displayname, int *screenp); xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *display, xcb_auth_info_t *auth, int *screen); +/* xcb_xid.c */ + +uint32_t xcb_generate_id(xcb_connection_t *c); + + /** * @} */