-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathxnoshm.c
110 lines (100 loc) · 2.31 KB
/
xnoshm.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
#include <X11/Xlib.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/extensions/XShm.h>
__attribute__((visibility("default"))) Bool XShmQueryExtension(
Display *display /* dpy */
)
{
return 0;
}
__attribute__((visibility("default"))) int XShmGetEventBase(
Display *display /* dpy */
)
{
return 0;
}
__attribute__((visibility("default"))) Bool XShmQueryVersion(
Display *display /* dpy */,
int *major /* majorVersion */,
int *minor /* minorVersion */,
Bool *pixmaps /* sharedPixmaps */
)
{
*major = 0;
*minor = 0;
*pixmaps = 0;
return 0;
}
__attribute__((visibility("default"))) int XShmPixmapFormat(
Display *display /* dpy */
)
{
return 0;
}
__attribute__((visibility("default"))) Bool XShmAttach(
Display *display /* dpy */,
XShmSegmentInfo *shminfo /* shminfo */
)
{
return 0;
}
__attribute__((visibility("default"))) Bool XShmDetach(
Display *display /* dpy */,
XShmSegmentInfo *shminfo /* shminfo */
)
{
return 0;
}
__attribute__((visibility("default"))) Bool XShmPutImage(
Display *display /* dpy */,
Drawable d /* d */,
GC gc /* gc */,
XImage *image /* image */,
int src_x /* src_x */,
int src_y /* src_y */,
int dst_x /* dst_x */,
int dst_y /* dst_y */,
unsigned int src_width /* src_width */,
unsigned intsrc_height /* src_height */,
Bool send_event /* send_event */
)
{
return 0;
}
__attribute__((visibility("default"))) Bool XShmGetImage(
Display *display /* dpy */,
Drawable d /* d */,
XImage *image /* image */,
int x /* x */,
int y /* y */,
unsigned long plane_mask /* plane_mask */
)
{
return 0;
}
__attribute__((visibility("default"))) XImage *XShmCreateImage(
Display *display /* dpy */,
Visual *visual /* visual */,
unsigned int depth /* depth */,
int format /* format */,
char *data /* data */,
XShmSegmentInfo *shminfo /* shminfo */,
unsigned int width /* width */,
unsigned int height /* height */
)
{
return 0;
}
__attribute__((visibility("default"))) Pixmap XShmCreatePixmap(
Display *display /* dpy */,
Drawable d /* d */,
char *data /* data */,
XShmSegmentInfo *shminfo /* shminfo */,
unsigned int width /* width */,
unsigned int height /* height */,
unsigned int depth /* depth */
)
{
return 0;
}