diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-08 16:02:51 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-08 16:02:51 +0200 |
commit | f62d03779bc8869ef80ab4e7deb7f0c813608cae (patch) | |
tree | 3ac12b201e2a79982c98121dc46e5164f3322f17 /mdns-publish.h | |
parent | 32d07c00381c6c9ea74ac7cfa325bd52a5328af6 (diff) | |
download | vconsole-f62d03779bc8869ef80ab4e7deb7f0c813608cae.tar.gz |
[wip] mdns announce for guest vnc servers
Diffstat (limited to 'mdns-publish.h')
-rw-r--r-- | mdns-publish.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/mdns-publish.h b/mdns-publish.h new file mode 100644 index 0000000..82fbe41 --- /dev/null +++ b/mdns-publish.h @@ -0,0 +1,28 @@ +struct mdns_pub; +struct mdns_pub_entry; + +extern char *mdns_pub_appname; +extern int mdns_pub_termsig; +extern int mdns_pub_appquit; + +/* initialization and cleanup */ +struct mdns_pub *mdns_pub_init(int debug); +int mdns_pub_start(struct mdns_pub *mdns); +int mdns_pub_stop(struct mdns_pub *mdns); +void mdns_pub_fini(struct mdns_pub *mdns); + +/* add and remove services */ +struct mdns_pub_entry *mdns_pub_add(struct mdns_pub *mdns, + const char *name, + const char *service, + int port, + ...); +void mdns_pub_del(struct mdns_pub_entry *entry); +void mdns_pub_del_all(struct mdns_pub *mdns); + +/* misc helper functions */ +int __attribute__ ((format (printf, 3, 0))) +mdns_log_printf(struct mdns_pub *mdns, int priority, + char *fmt, ...); +int mdns_daemonize(void); +void mdns_sigsetup(struct mdns_pub *mdns); |