Xprivate.h revision 61234c2c
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
11extern void _XIDHandler(Display *dpy);
12extern _X_HIDDEN void _XSeqSyncFunction(Display *dpy);
13extern void _XSetPrivSyncFunction(Display *dpy);
14extern void _XSetSeqSyncFunction(Display *dpy);
15
16#ifdef XTHREADS
17#if defined(XTHREADS_WARN) || defined(XTHREADS_FILE_LINE)
18#define InternalLockDisplay(d,wskip) if ((d)->lock) \
19    (*(d)->lock->internal_lock_display)(d,wskip,__FILE__,__LINE__)
20#else
21#define InternalLockDisplay(d,wskip) if ((d)->lock) \
22    (*(d)->lock->internal_lock_display)(d,wskip)
23#endif
24#else /* XTHREADS else */
25#define InternalLockDisplay(d,wskip)
26#endif /* XTHREADS else */
27
28#endif /* XPRIVATE_H */
29