summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-server-protected.h
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/dbus-server-protected.h')
-rw-r--r--dbus/dbus-server-protected.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/dbus/dbus-server-protected.h b/dbus/dbus-server-protected.h
index 284d02c5..dbbc3c62 100644
--- a/dbus/dbus-server-protected.h
+++ b/dbus/dbus-server-protected.h
@@ -35,6 +35,16 @@
DBUS_BEGIN_DECLS
typedef struct DBusServerVTable DBusServerVTable;
+typedef union DBusGUID DBusGUID;
+
+/**
+ * A server's globally unique ID
+ */
+union DBusGUID
+{
+ dbus_uint32_t as_uint32s[4];
+ unsigned char as_bytes[16];
+};
/**
* Virtual table to be implemented by all server "subclasses"
@@ -56,6 +66,9 @@ struct DBusServer
DBusAtomic refcount; /**< Reference count. */
const DBusServerVTable *vtable; /**< Virtual methods for this instance. */
DBusMutex *mutex; /**< Lock on the server object */
+
+ DBusGUID guid; /**< Globally unique ID of server */
+
DBusWatchList *watches; /**< Our watches */
DBusTimeoutList *timeouts; /**< Our timeouts */