Fixed get_event_obj/get_file_obj to use the process parameter (thanks
[wine.git] / tsx11 / ts_xshm.c
blobc42f37723b20d048e466ebfebe29dfe466bb9a54
1 /*
2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
4 * DO NOT EDIT!
5 */
7 #include "config.h"
9 #ifndef X_DISPLAY_MISSING
11 #ifdef HAVE_LIBXXSHM
13 #include <X11/Xlib.h>
14 #include <X11/extensions/XShm.h>
16 #include "debugtools.h"
17 #include "ts_xshm.h"
18 #include "x11drv.h"
20 DEFAULT_DEBUG_CHANNEL(x11)
22 Bool TSXShmQueryExtension(Display *a0)
24 Bool r;
25 TRACE("Call XShmQueryExtension\n");
26 EnterCriticalSection( &X11DRV_CritSection );
27 r = XShmQueryExtension(a0);
28 LeaveCriticalSection( &X11DRV_CritSection );
29 TRACE("Ret XShmQueryExtension\n");
30 return r;
33 Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
35 Bool r;
36 TRACE("Call XShmQueryVersion\n");
37 EnterCriticalSection( &X11DRV_CritSection );
38 r = XShmQueryVersion(a0, a1, a2, a3);
39 LeaveCriticalSection( &X11DRV_CritSection );
40 TRACE("Ret XShmQueryVersion\n");
41 return r;
44 int TSXShmPixmapFormat(Display *a0)
46 int r;
47 TRACE("Call XShmPixmapFormat\n");
48 EnterCriticalSection( &X11DRV_CritSection );
49 r = XShmPixmapFormat(a0);
50 LeaveCriticalSection( &X11DRV_CritSection );
51 TRACE("Ret XShmPixmapFormat\n");
52 return r;
55 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
57 Status r;
58 TRACE("Call XShmAttach\n");
59 EnterCriticalSection( &X11DRV_CritSection );
60 r = XShmAttach(a0, a1);
61 LeaveCriticalSection( &X11DRV_CritSection );
62 TRACE("Ret XShmAttach\n");
63 return r;
66 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
68 Status r;
69 TRACE("Call XShmDetach\n");
70 EnterCriticalSection( &X11DRV_CritSection );
71 r = XShmDetach(a0, a1);
72 LeaveCriticalSection( &X11DRV_CritSection );
73 TRACE("Ret XShmDetach\n");
74 return r;
77 Status TSXShmPutImage(Display *a0, Drawable a1, GC a2, XImage *a3, int a4, int a5, int a6, int a7, unsigned int a8, unsigned int a9, Bool a10)
79 Status r;
80 TRACE("Call XShmPutImage\n");
81 EnterCriticalSection( &X11DRV_CritSection );
82 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
83 LeaveCriticalSection( &X11DRV_CritSection );
84 TRACE("Ret XShmPutImage\n");
85 return r;
88 Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
90 Status r;
91 TRACE("Call XShmGetImage\n");
92 EnterCriticalSection( &X11DRV_CritSection );
93 r = XShmGetImage(a0, a1, a2, a3, a4, a5);
94 LeaveCriticalSection( &X11DRV_CritSection );
95 TRACE("Ret XShmGetImage\n");
96 return r;
99 XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
101 XImage * r;
102 TRACE("Call XShmCreateImage\n");
103 EnterCriticalSection( &X11DRV_CritSection );
104 r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
105 LeaveCriticalSection( &X11DRV_CritSection );
106 TRACE("Ret XShmCreateImage\n");
107 return r;
110 Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
112 Pixmap r;
113 TRACE("Call XShmCreatePixmap\n");
114 EnterCriticalSection( &X11DRV_CritSection );
115 r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
116 LeaveCriticalSection( &X11DRV_CritSection );
117 TRACE("Ret XShmCreatePixmap\n");
118 return r;
121 #endif /* defined(HAVE_LIBXXSHM) */
123 #endif /* !defined(X_DISPLAY_MISSING) */