aboutsummaryrefslogtreecommitdiffstats
path: root/vnc.h
blob: 57bd70bb2246f3e9cbdc7b4ec4df3cd0308b72e2 (plain)
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
#include <X11/Xlib.h>
#ifdef HAVE_VNC
# include <rfb/rfbclient.h>
#else
typedef struct { int dummy } rfbClient;
#endif

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);