Bug 633356 - (GDBus) Make G_MAXINT mean no timeout

Don't register a timeout function in the case that G_MAXINT is given for
the timeout length.
This commit is contained in:
Ryan Lortie
2010-10-28 16:14:24 -04:00
parent cd4f818b30
commit fac2a8278e
2 changed files with 23 additions and 14 deletions

View File

@@ -2214,7 +2214,8 @@ get_destination_for_call (GDBusProxy *proxy)
* @method_name: Name of method to invoke.
* @parameters: A #GVariant tuple with parameters for the signal or %NULL if not passing parameters.
* @flags: Flags from the #GDBusCallFlags enumeration.
* @timeout_msec: The timeout in milliseconds or -1 to use the proxy default timeout.
* @timeout_msec: The timeout in milliseconds (with %G_MAXINT meaning
* "infinite") or -1 to use the proxy default timeout.
* @cancellable: A #GCancellable or %NULL.
* @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL if you don't
* care about the result of the method invocation.
@@ -2381,7 +2382,8 @@ g_dbus_proxy_call_finish (GDBusProxy *proxy,
* @method_name: Name of method to invoke.
* @parameters: A #GVariant tuple with parameters for the signal or %NULL if not passing parameters.
* @flags: Flags from the #GDBusCallFlags enumeration.
* @timeout_msec: The timeout in milliseconds or -1 to use the proxy default timeout.
* @timeout_msec: The timeout in milliseconds (with %G_MAXINT meaning
* "infinite") or -1 to use the proxy default timeout.
* @cancellable: A #GCancellable or %NULL.
* @error: Return location for error or %NULL.
*