diff options
Diffstat (limited to 'dbus/dbus-protocol.h')
-rw-r--r-- | dbus/dbus-protocol.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dbus/dbus-protocol.h b/dbus/dbus-protocol.h index 651969c4..314a9934 100644 --- a/dbus/dbus-protocol.h +++ b/dbus/dbus-protocol.h @@ -53,7 +53,10 @@ extern "C" { #define DBUS_TYPE_DICT 10 #define DBUS_TYPE_LAST DBUS_TYPE_DICT - + +/* Max length in bytes of a service or message name */ +#define DBUS_MAXIMUM_NAME_LENGTH 256 + /* Header flags */ #define DBUS_HEADER_FLAG_ERROR 0x1 @@ -92,7 +95,12 @@ extern "C" { #define DBUS_MESSAGE_SERVICE_DELETED "org.freedesktop.DBus.ServiceDeleted" #define DBUS_MESSAGE_SERVICE_LOST "org.freedesktop.DBus.ServiceLost" -#define DBUS_MESSAGE_LOCAL_DISCONNECT "org.freedesktop.Local.Disconnect" + +/* This namespace is reserved for locally-synthesized messages, you can't + * send messages that have this namespace. + */ +#define DBUS_NAMESPACE_LOCAL_MESSAGE "org.freedesktop.Local." +#define DBUS_MESSAGE_LOCAL_DISCONNECT DBUS_NAMESPACE_LOCAL_MESSAGE"Disconnect" #ifdef __cplusplus } |