diff options
author | David Zeuthen <davidz@redhat.com> | 2009-10-15 20:29:36 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-10-15 20:29:36 -0400 |
commit | 9490305a3c54ec66592a1706e904bfa615518ed0 (patch) | |
tree | c12b3899e3cef53aca21f3e6710d68f1b650a6ac /docs | |
parent | 362ac29158883d7b03f17f5d38bea48801f3aca8 (diff) |
Add g_dbus_is_remote_error() function
This allows applications to make a distinction between errors
generated locally (such as G_DBUS_ERROR_CANCELLED,
G_DBUS_ERROR_DISCONNECTED, G_DBUS_ERROR_OBJECT_PATH_IN_USE etc.) and
errors generated in response to the remote object returning an error.
Also rename
g_dbus_error_get_dbus_error_name() -> g_dbus_error_get_remote_error()
g_dbus_error_strip() -> g_dbus_error_strip_remote_error()
to make things clearer.
This also closes the cornercase where a GDBus app returns the error
G_DBUS_ERROR_CANCELLED and this GError is transparently mapped across
the wire using the form org.gtk.GDBus.UnmappedGError.Quark... mechanism.
Previously the app on the receiving end was unable to determine if
this error stemmed from the local process (e.g. locally canceling the
method invocation) or whether it was remote. Now the receiving app can
use g_dbus_is_remote_error() to find out.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gdbus/gdbus-standalone-sections.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/reference/gdbus/gdbus-standalone-sections.txt b/docs/reference/gdbus/gdbus-standalone-sections.txt index c563595..c572812 100644 --- a/docs/reference/gdbus/gdbus-standalone-sections.txt +++ b/docs/reference/gdbus/gdbus-standalone-sections.txt @@ -94,8 +94,9 @@ g_bus_unwatch_proxy <FILE>gdbuserror</FILE> GDBusError G_DBUS_ERROR -g_dbus_error_get_dbus_error_name -g_dbus_error_strip +g_dbus_error_is_remote_error +g_dbus_error_get_remote_error +g_dbus_error_strip_remote_error g_dbus_error_register_error g_dbus_error_unregister_error g_dbus_error_new_for_dbus_error |