X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcbxlib.h;h=4cb5cd4bfc90b96bf9aa21e58daa724ece59a9c6;hb=a9d15a08451c76a9250642c9f662f296196f60a0;hp=7e050c22344e3d35187549a1e10e39f1706a8c51;hpb=a3bd6f4760b5b3f5f360a690920839646e2b9d06;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcbxlib.h b/src/xcbxlib.h index 7e050c2..4cb5cd4 100644 --- a/src/xcbxlib.h +++ b/src/xcbxlib.h @@ -25,15 +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" -/* This function must be called with the IOLock held. */ +/* 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 *xcb_get_io_lock(xcb_connection_t *c); +void xcb_xlib_lock(xcb_connection_t *c); +void xcb_xlib_unlock(xcb_connection_t *c); #endif