blob: ed6dfe815b7fe565ce87ecccdb12ce3082640cae [file] [log] [blame]
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00001/*
2 * Thread safe wrappers around XShm calls.
3 * This file was generated automatically by tools/make_X11wrappers
Alexandre Julliard03468f71998-02-15 19:40:49 +00004 * DO NOT EDIT!
Alexandre Julliard60ce85c1998-02-01 18:33:27 +00005 */
6
7#include <X11/Xlib.h>
8#include <X11/extensions/XShm.h>
Alexandre Julliard03468f71998-02-15 19:40:49 +00009#include "x11drv.h"
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000010#include "debug.h"
11
12Bool TSXShmQueryExtension(Display *a0)
13{
14 Bool r;
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000015 TRACE(x11, "Call XShmQueryExtension\n");
Alexandre Julliard03468f71998-02-15 19:40:49 +000016 EnterCriticalSection( &X11DRV_CritSection );
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000017 r = XShmQueryExtension(a0);
Alexandre Julliard03468f71998-02-15 19:40:49 +000018 LeaveCriticalSection( &X11DRV_CritSection );
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000019 TRACE(x11, "Ret XShmQueryExtension\n");
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000020 return r;
21}
22
Lionel Ulmer16704da1998-11-15 16:43:32 +000023Bool TSXShmQueryVersion(Display *a0, int *a1, int *a2, Bool *a3)
24{
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;
32}
33
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000034int TSXShmPixmapFormat(Display *a0)
35{
36 int r;
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000037 TRACE(x11, "Call XShmPixmapFormat\n");
Alexandre Julliard03468f71998-02-15 19:40:49 +000038 EnterCriticalSection( &X11DRV_CritSection );
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000039 r = XShmPixmapFormat(a0);
Alexandre Julliard03468f71998-02-15 19:40:49 +000040 LeaveCriticalSection( &X11DRV_CritSection );
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000041 TRACE(x11, "Ret XShmPixmapFormat\n");
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000042 return r;
43}
44
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000045Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
46{
47 Status r;
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000048 TRACE(x11, "Call XShmAttach\n");
Alexandre Julliard03468f71998-02-15 19:40:49 +000049 EnterCriticalSection( &X11DRV_CritSection );
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000050 r = XShmAttach(a0, a1);
Alexandre Julliard03468f71998-02-15 19:40:49 +000051 LeaveCriticalSection( &X11DRV_CritSection );
Alexandre Julliarda69b88b1998-03-15 20:29:56 +000052 TRACE(x11, "Ret XShmAttach\n");
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000053 return r;
54}
Alexandre Julliard642d3131998-07-12 19:29:36 +000055
Lionel Ulmer16704da1998-11-15 16:43:32 +000056Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
57{
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;
65}
66
Alexandre Julliard642d3131998-07-12 19:29:36 +000067Status 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)
68{
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;
76}
Alexandre Julliard829fe321998-07-26 14:27:39 +000077
Lionel Ulmer16704da1998-11-15 16:43:32 +000078Status TSXShmGetImage(Display *a0, Drawable a1, XImage *a2, int a3, int a4, unsigned long a5)
79{
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;
87}
88
89XImage * TSXShmCreateImage(Display *a0, Visual *a1, unsigned int a2, int a3, char *a4, XShmSegmentInfo *a5, unsigned int a6, unsigned int a7)
90{
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;
98}
99
100Pixmap TSXShmCreatePixmap(Display *a0, Drawable a1, char *a2, XShmSegmentInfo *a3, unsigned int a4, unsigned int a5, unsigned int a6)
101{
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;
109}
110