4 #include <aros/config.h>
14 XImage
* (*XCreateImage
) ( Display
* , Visual
* , unsigned int , int , int , char* , unsigned int , unsigned int , int , int );
15 int (*XInitImage
) ( XImage
* );
16 XImage
* (*XGetImage
) ( Display
* , Drawable
, int , int , unsigned int , unsigned int , unsigned long , int );
17 Display
* (*XOpenDisplay
) ( const char* );
18 char * (*XDisplayName
) ( const char* );
19 Atom (*XInternAtom
) ( Display
* , const char* , int );
20 Colormap (*XCreateColormap
) ( Display
* , Window
, Visual
* , int );
21 Cursor (*XCreatePixmapCursor
) ( Display
* , Pixmap
, Pixmap
, XColor
* , XColor
* , unsigned int , unsigned int );
22 Cursor (*XCreateFontCursor
) ( Display
* , unsigned int );
23 GC (*XCreateGC
) ( Display
* , Drawable
, unsigned long , XGCValues
* );
24 Pixmap (*XCreatePixmap
) ( Display
* , Drawable
, unsigned int , unsigned int , unsigned int );
25 Window (*XCreateSimpleWindow
) ( Display
* , Window
, int , int , unsigned int , unsigned int , unsigned int , unsigned long , unsigned long );
26 Window (*XCreateWindow
) ( Display
* , Window
, int , int , unsigned int , unsigned int , unsigned int , int , unsigned int , Visual
* , unsigned long , XSetWindowAttributes
* );
27 KeySym (*XLookupKeysym
) ( XKeyEvent
* , int );
28 long (*XMaxRequestSize
) ( Display
* );
29 VisualID (*XVisualIDFromVisual
) ( Visual
* );
30 XErrorHandler (*XSetErrorHandler
) ( XErrorHandler
);
31 XIOErrorHandler (*XSetIOErrorHandler
) ( XIOErrorHandler
);
32 int (*XSetWMHints
) ( Display
* , Window
, XWMHints
* );
33 int (*XSetWMProtocols
) ( Display
* , Window
, Atom
* , int );
34 int (*XAutoRepeatOff
) ( Display
* );
35 int (*XAutoRepeatOn
) ( Display
* );
36 int (*XChangeGC
) ( Display
* , GC
, unsigned long , XGCValues
* );
37 int (*XChangeProperty
) ( Display
* , Window
, Atom
, Atom
, int , int , const unsigned char* , int );
38 int (*XChangeWindowAttributes
) ( Display
* , Window
, unsigned long , XSetWindowAttributes
* );
39 int (*XClearArea
) ( Display
* , Window
, int , int , unsigned int , unsigned int , int );
40 int (*XCloseDisplay
) ( Display
* );
41 int (*XConfigureWindow
) ( Display
* , Window
, unsigned int , XWindowChanges
* );
42 int (*XConvertSelection
) ( Display
* , Atom
, Atom
, Atom
, Window
, Time
);
43 int (*XCopyArea
) ( Display
* , Drawable
, Drawable
, GC
, int , int , unsigned int , unsigned int , int , int );
44 int (*XCopyPlane
) ( Display
* , Drawable
, Drawable
, GC
, int , int , unsigned int , unsigned int , int , int , unsigned long );
45 int (*XDefineCursor
) ( Display
* , Window
, Cursor
);
46 int (*XDeleteProperty
) ( Display
* , Window
, Atom
);
47 int (*XDestroyWindow
) ( Display
* , Window
);
48 int (*XDrawArc
) ( Display
* , Drawable
, GC
, int , int , unsigned int , unsigned int , int , int );
49 int (*XDrawLine
) ( Display
* , Drawable
, GC
, int , int , int , int );
50 int (*XDrawPoint
) ( Display
* , Drawable
, GC
, int , int );
51 int (*XDrawString
) ( Display
* , Drawable
, GC
, int , int , const char* , int );
52 int (*XEventsQueued
) ( Display
* , int );
53 int (*XFillRectangle
) ( Display
* , Drawable
, GC
, int , int , unsigned int , unsigned int );
54 int (*XFlush
) ( Display
* );
55 int (*XFree
) ( void* );
56 int (*XFreeColormap
) ( Display
* , Colormap
);
57 int (*XFreeGC
) ( Display
* , GC
);
58 int (*XFreePixmap
) ( Display
* , Pixmap
);
59 int (*XGetErrorText
) ( Display
* , int , char* , int );
60 XVisualInfo
* (*XGetVisualInfo
) ( Display
* , long , XVisualInfo
* , int* );
61 int (*XGetWindowProperty
) ( Display
* , Window
, Atom
, long , long , int , Atom
, Atom
* , int* , unsigned long* , unsigned long* , unsigned char** );
62 int (*XGetWindowAttributes
) ( Display
* , Window
, XWindowAttributes
* );
63 int (*XGrabKeyboard
) ( Display
* , Window
, int , int , int , Time
);
64 int (*XGrabPointer
) ( Display
* , Window
, int , unsigned int , int , int , Window
, Cursor
, Time
);
65 int (*XMapRaised
) ( Display
* , Window
);
66 int (*XMapWindow
) ( Display
* , Window
);
67 int (*XNextEvent
) ( Display
* , XEvent
* );
68 int (*XParseGeometry
) ( const char* , int* , int* , unsigned int* , unsigned int* );
69 int (*XPending
) ( Display
* );
70 int (*XPutImage
) ( Display
* , Drawable
, GC
, XImage
* , int , int , int , int , unsigned int , unsigned int );
71 int (*XRecolorCursor
) ( Display
* , Cursor
, XColor
* , XColor
* );
72 int (*XRefreshKeyboardMapping
) ( XMappingEvent
* );
73 int (*XSelectInput
) ( Display
* , Window
, long );
74 int (*XSendEvent
) ( Display
* , Window
, int , long , XEvent
* );
75 int (*XSetBackground
) ( Display
* , GC
, unsigned long );
76 int (*XSetClipMask
) ( Display
* , GC
, Pixmap
);
77 int (*XSetClipRectangles
) ( Display
* , GC
, int , int , XRectangle
* , int , int );
78 int (*XSetFillStyle
) ( Display
* , GC
, int );
79 int (*XSetForeground
) ( Display
* , GC
, unsigned long );
80 int (*XSetFunction
) ( Display
* , GC
, int );
81 int (*XSetIconName
) ( Display
* , Window
, const char* );
82 int (*XSetSelectionOwner
) ( Display
* , Atom
, Window
, Time
);
83 int (*XStoreColor
) ( Display
* , Colormap
, XColor
* );
84 int (*XStoreName
) ( Display
* , Window
, const char* );
85 int (*XSync
) ( Display
* , int );
86 int (*XAllocColor
) ( Display
* , Colormap
, XColor
* );
87 int (*XLookupString
) ( XKeyEvent
* , char* , int , KeySym
* , XComposeStatus
* );
92 key_t (*ftok
) (const char *, int);
93 int (*shmctl
) (int, int, struct shmid_ds
*);
94 int (*shmget
) (key_t
, size_t, int);
95 void * (*shmat
) (int, const void *, int);
96 int (*shmdt
) (const void *);
101 extern void *x11_handle
;
102 extern struct x11_func x11_func
;
104 extern void *libc_handle
;
105 extern struct libc_func libc_func
;
107 #define X11_SOFILE "libX11.so.6"
108 #define LIBC_SOFILE "libc.so.6"
110 #define XCALL(func,...) (x11_func.func(__VA_ARGS__))
111 #define CCALL(func,...) (libc_func.func(__VA_ARGS__))