aboutsummaryrefslogtreecommitdiffstats
path: root/vnc.h
diff options
context:
space:
mode:
Diffstat (limited to 'vnc.h')
-rw-r--r--vnc.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/vnc.h b/vnc.h
new file mode 100644
index 0000000..c8ec360
--- /dev/null
+++ b/vnc.h
@@ -0,0 +1,21 @@
+#include <X11/Xlib.h>
+#include <rfb/rfbclient.h>
+
+struct vnc_window {
+ /* vnc connection */
+ rfbClient *client;
+ GIOChannel *ch;
+ guint id;
+ /* gtk windows */
+ GtkWidget *win;
+ GtkWidget *draw;
+ XImage *ximage;
+ void *shm;
+ GC gc;
+ Display *dpy;
+ /* misc */
+ int standalone;
+};
+
+void vnc_release(struct vnc_window*);
+struct vnc_window* vnc_open(char *hostname, int displayno, int standalone);