]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Add error o.fd.D.Error.ObjectPathInUse (DBUS_ERROR_OBJECT_PATH_IN_USE)
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 10 Oct 2007 10:38:34 +0000 (11:38 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 10 Oct 2007 16:33:31 +0000 (17:33 +0100)
dbus/dbus-errors.c
dbus/dbus-protocol.h

index 7c1d68e53a56e01069c9e74b20c82b94b2c888d6..d0a80b02a35d5f85cd12aa350548c58726ac4f2c 100644 (file)
@@ -97,6 +97,8 @@ message_from_error (const char *error)
     return "Did not get a reply message.";
   else if (strcmp (error, DBUS_ERROR_FILE_NOT_FOUND) == 0)
     return "File doesn't exist.";
+  else if (strcmp (error, DBUS_ERROR_OBJECT_PATH_IN_USE) == 0)
+    return "Object path already in use";
   else
     return error;
 }
index 240f95269bbde835313b0cef16ab38895e43af60..58677dcfcf97e7704130c71717e87b9b13c9f2eb 100644 (file)
@@ -411,6 +411,8 @@ extern "C" {
 #define DBUS_ERROR_INVALID_FILE_CONTENT       "org.freedesktop.DBus.Error.InvalidFileContent"
 /** Asked for SELinux security context and it wasn't available. */
 #define DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN    "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"
+/** There's already an object with the requested object path. */
+#define DBUS_ERROR_OBJECT_PATH_IN_USE         "org.freedesktop.DBus.Error.ObjectPathInUse"
 
 /* XML introspection format */