summaryrefslogtreecommitdiff
path: root/src/dbus.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-08 02:27:43 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-08 02:27:43 +0100
commit08672cb5071af320127f6fe8d0916f62bedd82f3 (patch)
treed91cc733ba11fe57de18901ce584e325489ad23b /src/dbus.h
parent83310f162d2a78913b2748aaa5ffb1ae8226484f (diff)
dbus: return DBUS_ERROR_UNKNOWN_OBJECT when an object is unknown
Diffstat (limited to 'src/dbus.h')
-rw-r--r--src/dbus.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dbus.h b/src/dbus.h
index 255b653376..2aaeb4745f 100644
--- a/src/dbus.h
+++ b/src/dbus.h
@@ -24,6 +24,14 @@
#include <dbus/dbus.h>
+#ifndef DBUS_ERROR_UNKNOWN_OBJECT
+#define DBUS_ERROR_UNKNOWN_OBJECT "org.freedesktop.DBus.Error.UnknownObject"
+#endif
+
+#ifndef DBUS_ERROR_UNKNOWN_INTERFACE
+#define DBUS_ERROR_UNKNOWN_INTERFACE "org.freedesktop.DBus.Error.UnknownInterface"
+#endif
+
#include "manager.h"
typedef int (*BusPropertyCallback)(Manager *m, DBusMessageIter *iter, const char *property, void *data);