summaryrefslogtreecommitdiffstats
path: root/x11vnc/xwrappers.h
diff options
context:
space:
mode:
authorrunge <runge>2006-01-09 01:54:38 +0000
committerrunge <runge>2006-01-09 01:54:38 +0000
commit71f2ec79180185a6c3db0c87f9d53c491dc31e76 (patch)
tree67c341571cbeb1bd9a0744cc8eb03b30ef04f381 /x11vnc/xwrappers.h
parentdef301266373e462f4a5e90eab443087ccfc7ccc (diff)
downloadlibtdevnc-71f2ec79180185a6c3db0c87f9d53c491dc31e76.tar.gz
libtdevnc-71f2ec79180185a6c3db0c87f9d53c491dc31e76.zip
x11vnc: the big split.
Diffstat (limited to 'x11vnc/xwrappers.h')
-rw-r--r--x11vnc/xwrappers.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/x11vnc/xwrappers.h b/x11vnc/xwrappers.h
new file mode 100644
index 0000000..601c582
--- /dev/null
+++ b/x11vnc/xwrappers.h
@@ -0,0 +1,68 @@
+#ifndef _X11VNC_XWRAPPERS_H
+#define _X11VNC_XWRAPPERS_H
+
+/* -- xwrappers.h -- */
+
+extern int xshm_present;
+extern int xtest_present;
+extern int xtrap_present;
+extern int xrecord_present;
+extern int xkb_present;
+extern int xinerama_present;
+
+extern int keycode_state[];
+extern int rootshift;
+extern int clipshift;
+
+
+extern int guess_bits_per_color(int bits_per_pixel);
+
+extern Status XShmGetImage_wr(Display *disp, Drawable d, XImage *image, int x, int y,
+ unsigned long mask);
+extern XImage *XShmCreateImage_wr(Display* disp, Visual* vis, unsigned int depth,
+ int format, char* data, XShmSegmentInfo* shminfo, unsigned int width,
+ unsigned int height);
+extern Status XShmAttach_wr(Display *disp, XShmSegmentInfo *shminfo);
+extern Status XShmDetach_wr(Display *disp, XShmSegmentInfo *shminfo);
+extern Bool XShmQueryExtension_wr(Display *disp);
+
+extern XImage *xreadscreen(Display *disp, Drawable d, int x, int y,
+ unsigned int width, unsigned int height, Bool show_cursor);
+extern XImage *XGetSubImage_wr(Display *disp, Drawable d, int x, int y,
+ unsigned int width, unsigned int height, unsigned long plane_mask,
+ int format, XImage *dest_image, int dest_x, int dest_y);
+extern XImage *XGetImage_wr(Display *disp, Drawable d, int x, int y,
+ unsigned int width, unsigned int height, unsigned long plane_mask,
+ int format);
+extern XImage *XCreateImage_wr(Display *disp, Visual *visual, unsigned int depth,
+ int format, int offset, char *data, unsigned int width,
+ unsigned int height, int bitmap_pad, int bytes_per_line);
+extern void copy_image(XImage *dest, int x, int y, unsigned int w, unsigned int h);
+extern void init_track_keycode_state(void);
+
+extern void XTRAP_FakeKeyEvent_wr(Display* dpy, KeyCode key, Bool down,
+ unsigned long delay);
+extern void XTestFakeKeyEvent_wr(Display* dpy, KeyCode key, Bool down,
+ unsigned long delay);
+extern void XTRAP_FakeButtonEvent_wr(Display* dpy, unsigned int button, Bool is_press,
+ unsigned long delay);
+extern void XTestFakeButtonEvent_wr(Display* dpy, unsigned int button, Bool is_press,
+ unsigned long delay);
+extern void XTRAP_FakeMotionEvent_wr(Display* dpy, int screen, int x, int y,
+ unsigned long delay);
+extern void XTestFakeMotionEvent_wr(Display* dpy, int screen, int x, int y,
+ unsigned long delay);
+
+extern Bool XTestCompareCurrentCursorWithWindow_wr(Display* dpy, Window w);
+extern Bool XTestCompareCursorWithWindow_wr(Display* dpy, Window w, Cursor cursor);
+extern Bool XTestQueryExtension_wr(Display *dpy, int *ev, int *er, int *maj,
+ int *min);
+extern void XTestDiscard_wr(Display *dpy);
+extern Bool XETrapQueryExtension_wr(Display *dpy, int *ev, int *er, int *op);
+extern int XTestGrabControl_wr(Display *dpy, Bool impervious);
+extern int XTRAP_GrabControl_wr(Display *dpy, Bool impervious);
+extern void disable_grabserver(Display *in_dpy, int change);
+
+extern Bool XRecordQueryVersion_wr(Display *dpy, int *maj, int *min);
+
+#endif /* _X11VNC_XWRAPPERS_H */