X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=main.c;fp=main.c;h=dd26c93d2276fe15f5e031e957dadc90483eaaec;hb=da12281342317ed9351d3b0fb99596a40b928fd9;hp=23af6fa189f47bef90fa03e0ab65a92bd7463e15;hpb=29ab08e7d59fe97f23d057583808d6d67377f9d7;p=ovirt-viewer.git diff --git a/main.c b/main.c index 23af6fa..dd26c93 100644 --- a/main.c +++ b/main.c @@ -75,6 +75,7 @@ static GSList *vmlist = NULL; /* internal.h shared constructs */ const char* hostname; struct vm* vm_in_focus; +int ovirt_server_vnc_port = 5900; /* Private functions. */ static void start_ui (void); @@ -200,6 +201,8 @@ static const char *help_msg = "Use '" PACKAGE " --help' to see a list of available command line options"; static const GOptionEntry options[] = { + { "port", 'p', 0, G_OPTION_ARG_INT, &ovirt_server_vnc_port, + "set port which to connect to server via vnc", NULL }, { "cainfo", 0, 0, G_OPTION_ARG_STRING, &cainfo, "set the path of the CA certificate bundle", NULL }, { "check-certificate", 0, 0, G_OPTION_ARG_NONE, &check_cert,