diff options
author | David Zeuthen <davidz@redhat.com> | 2009-10-15 21:00:29 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2009-10-15 21:00:29 -0400 |
commit | cc5733e00b8238caa01585d094e90186a82ac0a6 (patch) | |
tree | 5122fbd54353a69913b7efe577406b2c89555c4c /docs | |
parent | 9490305a3c54ec66592a1706e904bfa615518ed0 (diff) |
Introduce proxy default timeout
Some D-Bus services can take ages to generate a reply. One example of
this is DeviceKit-disks - if you do FilesystemCreate() the method call
can be pending for hours, even days, while waiting for mkfs(8) to do
it's job.
With tools, such as eggdbus-binding-tool, generating proxy classes it
would be nice to avoid a @timeout_msec parameter. This can be avoided
if the generated proxy always passes -1 for the timeout and GDBusProxy
interprets this as using a timeout configurable for the proxy
instance. With this patch, the user can simply do
g_dbus_proxy_set_timeout (G_DBUS_PROXY (my_disk_proxy), GMAX_INT);
to force no timeout.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gdbus/gdbus-standalone-sections.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/reference/gdbus/gdbus-standalone-sections.txt b/docs/reference/gdbus/gdbus-standalone-sections.txt index c572812..61fa3e6 100644 --- a/docs/reference/gdbus/gdbus-standalone-sections.txt +++ b/docs/reference/gdbus/gdbus-standalone-sections.txt @@ -119,6 +119,8 @@ g_dbus_proxy_get_connection g_dbus_proxy_get_unique_bus_name g_dbus_proxy_get_object_path g_dbus_proxy_get_interface_name +g_dbus_proxy_get_timeout +g_dbus_proxy_set_timeout g_dbus_proxy_get_cached_property g_dbus_proxy_invoke_method g_dbus_proxy_invoke_method_finish |