summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-09-10 00:22:30 +0000
committerLennart Poettering <lennart@poettering.net>2005-09-10 00:22:30 +0000
commite8edcf439d2ce1593af11c357893681b6b3c0bb4 (patch)
treed630ac06209abd27e352cef664394bc0cb9b904e /avahi-common
parenta9566d5dcac080d7fa91546823277c57a5d09a5f (diff)
* add magic identification cookies to service TXT records automatically
* add an API to query the local service cookie * add a DBUS interface to query the local service cookie * wrap that in avahi-client git-svn-id: file:///home/lennart/svn/public/avahi/trunk@555 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/defs.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/avahi-common/defs.h b/avahi-common/defs.h
index 1475a43..b973b0c 100644
--- a/avahi-common/defs.h
+++ b/avahi-common/defs.h
@@ -172,6 +172,15 @@ typedef enum {
AVAHI_SERVER_COLLISION /**< There is a collision with a host RR. All host RRs have been withdrawn, the user should set a new host name via avahi_server_set_host_name() */
} AvahiServerState;
+/** For every service a special TXT item is implicitly added, which
+ * contains a random cookie which is private to the local daemon. This
+ * can be used by clients to determine if two services on two
+ * different subnets are effectively the same. */
+#define AVAHI_SERVICE_COOKIE "org.freedesktop.Avahi.cookie"
+
+/** In invalid cookie as special value */
+#define AVAHI_SERVICE_COOKIE_INVALID (0)
+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
AVAHI_C_DECL_END
#endif