summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-11-24 01:30:44 +0000
committerLennart Poettering <lennart@poettering.net>2005-11-24 01:30:44 +0000
commitbe4aaeb485d31dee095b0c9c90e6b79333bc0e21 (patch)
treefebd8a5d5e834b7f5f28f3abfd544267ec1cc8b7 /avahi-common
parent3632da5dea3a2e961729664d17808d98bfc2b325 (diff)
Add DBUS API versioning
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1027 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/dbus.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/avahi-common/dbus.h b/avahi-common/dbus.h
index eb29581..84d5d2d 100644
--- a/avahi-common/dbus.h
+++ b/avahi-common/dbus.h
@@ -41,6 +41,15 @@ AVAHI_C_DECL_BEGIN
#define AVAHI_DBUS_INTERFACE_SERVICE_RESOLVER AVAHI_DBUS_NAME".ServiceResolver"
#define AVAHI_DBUS_INTERFACE_RECORD_BROWSER AVAHI_DBUS_NAME".RecordBrowser"
+/** The DBUS API version identifier. The first byte specifies the API
+release, the second byte specifies the revision. If the revision
+number is increased the API has been extended but is downwards
+compatible. If the release changes compatibility is lost.
+
+Avahi 0.6 implements API version 0x0201;
+Avahi 0.6.1 implements API version 0x0202 */
+#define AVAHI_DBUS_API_VERSION ((uint32_t) 0x0202)
+
#define AVAHI_DBUS_ERR_OK "org.freedesktop.Avahi.Success"
#define AVAHI_DBUS_ERR_FAILURE "org.freedesktop.Avahi.Failure"
#define AVAHI_DBUS_ERR_BAD_STATE "org.freedesktop.Avahi.BadStateError"