Add error o.fd.D.Error.ObjectPathInUse (DBUS_ERROR_OBJECT_PATH_IN_USE)

This commit is contained in:
Simon McVittie 2007-10-10 11:38:34 +01:00
parent 557da17406
commit d7fbcb5e02
2 changed files with 4 additions and 0 deletions

View 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;
}

View 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 */