diff options
Diffstat (limited to 'vnc.h')
-rw-r--r-- | vnc.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -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); |