Release 980201
[wine.git] / tsx11 / ts_xshm.c
blob0071cb57c4e3984fb9692fb2b0bae0b55cfff7c4
1 /*
2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
5 * Copyright 1998 Kristian Nielsen
6 */
8 #include <X11/Xlib.h>
9 #include <X11/extensions/XShm.h>
10 #include "tsx11defs.h"
11 #include "stddebug.h"
12 #include "debug.h"
14 Bool TSXShmQueryExtension(Display *a0)
16 Bool r;
17 dprintf_x11(stddeb, "Call XShmQueryExtension\n");
18 X11_LOCK();
19 r = XShmQueryExtension(a0);
20 X11_UNLOCK();
21 dprintf_x11(stddeb, "Ret XShmQueryExtension\n");
22 return r;
25 int TSXShmPixmapFormat(Display *a0)
27 int r;
28 dprintf_x11(stddeb, "Call XShmPixmapFormat\n");
29 X11_LOCK();
30 r = XShmPixmapFormat(a0);
31 X11_UNLOCK();
32 dprintf_x11(stddeb, "Ret XShmPixmapFormat\n");
33 return r;
36 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
38 Status r;
39 dprintf_x11(stddeb, "Call XShmDetach\n");
40 X11_LOCK();
41 r = XShmDetach(a0, a1);
42 X11_UNLOCK();
43 dprintf_x11(stddeb, "Ret XShmDetach\n");
44 return r;
47 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
49 Status r;
50 dprintf_x11(stddeb, "Call XShmAttach\n");
51 X11_LOCK();
52 r = XShmAttach(a0, a1);
53 X11_UNLOCK();
54 dprintf_x11(stddeb, "Ret XShmAttach\n");
55 return r;