diff options
author | kraxel <kraxel> | 2006-10-25 14:47:11 +0000 |
---|---|---|
committer | kraxel <kraxel> | 2006-10-25 14:47:11 +0000 |
commit | 397fcd38d34e02a73dc0d05e41562a82e608e203 (patch) | |
tree | 051bfb9d033634e8d6832cfb754a1be6a777c2e6 /xd_view.c | |
parent | 75e722fc76c56c56a14546ba2dc7418fec08a558 (diff) | |
download | xenwatch-397fcd38d34e02a73dc0d05e41562a82e608e203.tar.gz |
add cvs viewer
Diffstat (limited to 'xd_view.c')
-rw-r--r-- | xd_view.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -19,6 +19,7 @@ #include "tcp.h" #include "mdns.h" #include "apps.h" +#include "vnc.h" #define array_size(x) (sizeof(x)/sizeof(*x)) @@ -134,8 +135,12 @@ static void open_vnc(gint id, char *name, char *ostype) { if (0 == strcmp(ostype, "hvm")) { /* works for hvm ... */ +#ifdef HAVE_VNC + vnc_open("localhost", id, 0); +#else if (-1 == open_vnc_session("localhost", id)) gtk_message(GTK_MESSAGE_ERROR, app_error); +#endif } else { gtk_message(GTK_MESSAGE_ERROR, "VNC works for hvm domains only.\n"); } |