X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcbxlib.h;h=4cb5cd4bfc90b96bf9aa21e58daa724ece59a9c6;hb=1ead02e88eb9f37757eeb1cc8c762fc48d6d08ee;hp=e9f7140d5794affd50886f1ca531eb3684dc5102;hpb=47ceed78612d48dcda62cc2686fc527d61abe38b;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcbxlib.h b/src/xcbxlib.h index e9f7140..4cb5cd4 100644 --- a/src/xcbxlib.h +++ b/src/xcbxlib.h @@ -25,14 +25,20 @@ * authorization from the authors. */ +/* This include file declares functions used by Xlib/XCB, but nothing else + * should ever use these functions or link to libxcb-xlib. */ + #ifndef __XCBXLIB_H #define __XCBXLIB_H #include #include "xcb.h" -unsigned int XCBGetRequestSent(XCBConnection *c); +/* The caller of this function must hold the xlib lock, using the lock + * functions below. */ +unsigned int xcb_get_request_sent(xcb_connection_t *c); -pthread_mutex_t *XCBGetIOLock(XCBConnection *c); +void xcb_xlib_lock(xcb_connection_t *c); +void xcb_xlib_unlock(xcb_connection_t *c); #endif