55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* Thread safe wrappers around XShm calls.
|
|
* This file was generated automatically by tools/make_X11wrappers
|
|
* DO NOT EDIT!
|
|
*/
|
|
|
|
#include <X11/Xlib.h>
|
|
#include <X11/extensions/XShm.h>
|
|
#include "x11drv.h"
|
|
#include "debug.h"
|
|
|
|
Bool TSXShmQueryExtension(Display *a0)
|
|
{
|
|
Bool r;
|
|
TRACE(x11, "Call XShmQueryExtension\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XShmQueryExtension(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XShmQueryExtension\n");
|
|
return r;
|
|
}
|
|
|
|
int TSXShmPixmapFormat(Display *a0)
|
|
{
|
|
int r;
|
|
TRACE(x11, "Call XShmPixmapFormat\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XShmPixmapFormat(a0);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XShmPixmapFormat\n");
|
|
return r;
|
|
}
|
|
|
|
Status TSXShmDetach(Display *a0, XShmSegmentInfo *a1)
|
|
{
|
|
Status r;
|
|
TRACE(x11, "Call XShmDetach\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XShmDetach(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XShmDetach\n");
|
|
return r;
|
|
}
|
|
|
|
Status TSXShmAttach(Display *a0, XShmSegmentInfo *a1)
|
|
{
|
|
Status r;
|
|
TRACE(x11, "Call XShmAttach\n");
|
|
EnterCriticalSection( &X11DRV_CritSection );
|
|
r = XShmAttach(a0, a1);
|
|
LeaveCriticalSection( &X11DRV_CritSection );
|
|
TRACE(x11, "Ret XShmAttach\n");
|
|
return r;
|
|
}
|