aboutsummaryrefslogtreecommitdiffstats
path: root/xd_view.c
diff options
context:
space:
mode:
authorkraxel <kraxel>2006-10-25 14:47:11 +0000
committerkraxel <kraxel>2006-10-25 14:47:11 +0000
commit397fcd38d34e02a73dc0d05e41562a82e608e203 (patch)
tree051bfb9d033634e8d6832cfb754a1be6a777c2e6 /xd_view.c
parent75e722fc76c56c56a14546ba2dc7418fec08a558 (diff)
downloadxenwatch-397fcd38d34e02a73dc0d05e41562a82e608e203.tar.gz
add cvs viewer
Diffstat (limited to 'xd_view.c')
-rw-r--r--xd_view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xd_view.c b/xd_view.c
index 4b510d1..dc1c1d8 100644
--- a/xd_view.c
+++ b/xd_view.c
@@ -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");
}