summaryrefslogtreecommitdiff
path: root/gio/gdbuserror.c
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2014-04-09 16:14:11 +0200
committerStef Walter <stefw@gnome.org>2014-04-09 20:48:19 +0200
commit76d6fd01dec6fd3ae4cb21f4bdf1ad7ee521a2c2 (patch)
tree4f03764ba2c99bf4f89f3358f95812d0558a84a0 /gio/gdbuserror.c
parent65f26691733a8c8b48476d899b52cf17c0cfae88 (diff)
gio: Add newer dbus UnknownXxxx and PropertyReadOnly errors
Add G_DBUS_ERROR codes for: * org.freedesktop.DBus.Error.UnknownObject * org.freedesktop.DBus.Error.UnknownInterface * org.freedesktop.DBus.Error.UnknownProperty * org.freedesktop.DBus.Error.PropertyReadOnly These were discussed on the dbus mailing list and introduced in the following libdbus commit: 2c34514620c4b79ea4ec71d1db583379138d01ac https://bugzilla.gnome.org/show_bug.cgi?id=727900
Diffstat (limited to 'gio/gdbuserror.c')
-rw-r--r--gio/gdbuserror.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gio/gdbuserror.c b/gio/gdbuserror.c
index 6308e1772..8dd4b7181 100644
--- a/gio/gdbuserror.c
+++ b/gio/gdbuserror.c
@@ -150,12 +150,16 @@ static const GDBusErrorEntry g_dbus_error_entries[] =
{G_DBUS_ERROR_SELINUX_SECURITY_CONTEXT_UNKNOWN, "org.freedesktop.DBus.Error.SELinuxSecurityContextUnknown"},
{G_DBUS_ERROR_ADT_AUDIT_DATA_UNKNOWN, "org.freedesktop.DBus.Error.AdtAuditDataUnknown"},
{G_DBUS_ERROR_OBJECT_PATH_IN_USE, "org.freedesktop.DBus.Error.ObjectPathInUse"},
+ {G_DBUS_ERROR_UNKNOWN_OBJECT, "org.freedesktop.DBus.Error.UnknownObject"},
+ {G_DBUS_ERROR_UNKNOWN_INTERFACE, "org.freedesktop.DBus.Error.UnknownInterface"},
+ {G_DBUS_ERROR_UNKNOWN_PROPERTY, "org.freedesktop.DBus.Error.UnknownProperty"},
+ {G_DBUS_ERROR_PROPERTY_READ_ONLY, "org.freedesktop.DBus.Error.PropertyReadOnly"},
};
GQuark
g_dbus_error_quark (void)
{
- G_STATIC_ASSERT (G_N_ELEMENTS (g_dbus_error_entries) - 1 == G_DBUS_ERROR_OBJECT_PATH_IN_USE);
+ G_STATIC_ASSERT (G_N_ELEMENTS (g_dbus_error_entries) - 1 == G_DBUS_ERROR_PROPERTY_READ_ONLY);
static volatile gsize quark_volatile = 0;
g_dbus_error_register_error_domain ("g-dbus-error-quark",
&quark_volatile,