even if we have an older libdbus - let's #define the strings that are
authorCarsten Haitzler <raster@rasterman.com>
Sat, 10 Nov 2012 04:26:48 +0000 (04:26 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sat, 10 Nov 2012 04:26:48 +0000 (04:26 +0000)
missing - at r4untime we wont get them, but hey - we'll compile at
least and when dbus is upgrade... we'll get them and work right. :)

SVN revision: 79080

src/lib/edbus_service.c

index 4aaf7e9..ac5d736 100644 (file)
 #define DBUS_ANNOTATION_DEPRECATED  DBUS_ANNOTATION("Deprecated", "true")
 #define DBUS_ANNOTATION_NOREPLY     DBUS_ANNOTATION("Method.NoReply", "true")
 
+#ifndef DBUS_ERROR_UNKNOWN_INTERFACE
+# define DBUS_ERROR_UNKNOWN_INTERFACE          "org.freedesktop.DBus.Error.UnknownInterface"
+#endif
+
+#ifndef DBUS_ERROR_UNKNOWN_PROPERTY
+# define DBUS_ERROR_UNKNOWN_PROPERTY           "org.freedesktop.DBus.Error.UnknownProperty"
+#endif
+
+#ifndef DBUS_ERROR_PROPERTY_READ_ONLY
+# define DBUS_ERROR_PROPERTY_READ_ONLY         "org.freedesktop.DBus.Error.PropertyReadOnly"
+#endif
+
 #define EDBUS_SERVICE_INTERFACE_CHECK(obj)                         \
   do                                                            \
     {                                                           \