diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-08 21:26:52 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-08 21:26:52 +0200 |
commit | fa0ff7cd18ca8c93f96cf703d07c302e0c469020 (patch) | |
tree | 2f0a63240e86cdd2605890e53173a59ced4a9971 | |
parent | 07d087596979ecae54f4d5dc887706a14231d54d (diff) | |
download | vconsole-fa0ff7cd18ca8c93f96cf703d07c302e0c469020.tar.gz |
misc
-rw-r--r-- | vpublish.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -42,13 +42,13 @@ struct display { static struct list_head domains = LIST_HEAD_INIT(domains); static struct mdns_pub *mdns; -static void display_add_vnc(virDomainPtr d, xmlChar *port) +static void display_add(virDomainPtr d, xmlChar *service, xmlChar *port) { const char *name = virDomainGetName(d); display *dpy = g_new0(display, 1); virDomainGetUUIDString(d, dpy->uuid); - dpy->entry = mdns_pub_add(mdns, name, "_rfb._tcp", atoi(port), NULL); + dpy->entry = mdns_pub_add(mdns, name, service, atoi(port), NULL); list_add(&dpy->next, &domains); } @@ -134,7 +134,7 @@ static void domain_check(virConnectPtr c, virDomainPtr d) } if (debug) fprintf(stderr, " %d: port %s\n", i + 1, port); - display_add_vnc(d, port); + display_add(d, "_rfb._tcp", port); } } xmlXPathFreeObject(obj); |