Made variables optimized into registers accessible.
[wine.git] / tsx11 / ts_xshm.c
blobed6dfe815b7fe565ce87ecccdb12ce3082640cae
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 <X11/Xlib.h>
8 #include <X11/extensions/XShm.h>
9 #include "x11drv.h"
10 #include "debug.h"
12 Bool TSXShmQueryExtension(Display *a0)
14 Bool r;
15 TRACE(x11, "Call XShmQueryExtension\n");
16 EnterCriticalSection( &X11DRV_CritSection );
17 r = XShmQueryExtension(a0);
18 LeaveCriticalSection( &X11DRV_CritSection );
19 TRACE(x11, "Ret XShmQueryExtension\n");
20 return r;
23 Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
25 Bool r;
26 TRACE(x11, "Call XShmQueryVersion\n");
27 EnterCriticalSection( &X11DRV_CritSection );
28 r = XShmQueryVersion(a0, a1, a2, a3);
29 LeaveCriticalSection( &X11DRV_CritSection );
30 TRACE(x11, "Ret XShmQueryVersion\n");
31 return r;
34 int TSXShmPixmapFormat(Display *a0)
36 int r;
37 TRACE(x11, "Call XShmPixmapFormat\n");
38 EnterCriticalSection( &X11DRV_CritSection );
39 r = XShmPixmapFormat(a0);
40 LeaveCriticalSection( &X11DRV_CritSection );
41 TRACE(x11, "Ret XShmPixmapFormat\n");
42 return r;
45 Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
47 Status r;
48 TRACE(x11, "Call XShmAttach\n");
49 EnterCriticalSection( &X11DRV_CritSection );
50 r = XShmAttach(a0, a1);
51 LeaveCriticalSection( &X11DRV_CritSection );
52 TRACE(x11, "Ret XShmAttach\n");
53 return r;
56 Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
58 Status r;
59 TRACE(x11, "Call XShmDetach\n");
60 EnterCriticalSection( &X11DRV_CritSection );
61 r = XShmDetach(a0, a1);
62 LeaveCriticalSection( &X11DRV_CritSection );
63 TRACE(x11, "Ret XShmDetach\n");
64 return r;
67 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)
69 Status r;
70 TRACE(x11, "Call XShmPutImage\n");
71 EnterCriticalSection( &X11DRV_CritSection );
72 r = XShmPutImage(a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10);
73 LeaveCriticalSection( &X11DRV_CritSection );
74 TRACE(x11, "Ret XShmPutImage\n");
75 return r;
78 Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
80 Status r;
81 TRACE(x11, "Call XShmGetImage\n");
82 EnterCriticalSection( &X11DRV_CritSection );
83 r = XShmGetImage(a0, a1, a2, a3, a4, a5);
84 LeaveCriticalSection( &X11DRV_CritSection );
85 TRACE(x11, "Ret XShmGetImage\n");
86 return r;
89 XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
91 XImage * r;
92 TRACE(x11, "Call XShmCreateImage\n");
93 EnterCriticalSection( &X11DRV_CritSection );
94 r = XShmCreateImage(a0, a1, a2, a3, a4, a5, a6, a7);
95 LeaveCriticalSection( &X11DRV_CritSection );
96 TRACE(x11, "Ret XShmCreateImage\n");
97 return r;
100 Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
102 Pixmap r;
103 TRACE(x11, "Call XShmCreatePixmap\n");
104 EnterCriticalSection( &X11DRV_CritSection );
105 r = XShmCreatePixmap(a0, a1, a2, a3, a4, a5, a6);
106 LeaveCriticalSection( &X11DRV_CritSection );
107 TRACE(x11, "Ret XShmCreatePixmap\n");
108 return r;