Debian Codegraph @

nx-X11/lib/src/Xprivate.h

raw
1 /* Copyright (C) 2008 Jamey Sharp, Josh Triplett
2 * This file is licensed under the MIT license. See the file COPYING.
3 *
4 * As Xlibint.h has long become effectively public API, this header exists
5 * for new private functions that nothing outside of libX11 should call.
6 */
7
8 #ifndef XPRIVATE_H
9 #define XPRIVATE_H
10
11 #include <nx-X11/Xlib.h>
12
13 extern _X_HIDDEN void _XIDHandler(Display *dpy);
14 extern _X_HIDDEN void _XSeqSyncFunction(Display *dpy);
15 extern _X_HIDDEN void _XSetPrivSyncFunction(Display *dpy);
16 extern _X_HIDDEN void _XSetSeqSyncFunction(Display *dpy);
17
18 #ifdef XTHREADS
19 #if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE)
20 #define InternalLockDisplay(d,wskip) if ((d)->lock) \
21 (*(d)->lock->internal_lock_display)(d,wskip,__FILE__,__LINE__)
22 #else
23 #define InternalLockDisplay(d,wskip) if ((d)->lock) \
24 (*(d)->lock->internal_lock_display)(d,wskip)
25 #endif
26 #else /* XTHREADS else */
27 #define InternalLockDisplay(d,wskip)
28 #endif /* XTHREADS else */
29
30 #endif /* XPRIVATE_H */