diff options
author | Timm Bäder <mail@baedert.org> | 2016-07-18 10:35:33 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2016-07-19 13:22:47 +0200 |
commit | 297e559225f440df88f2c7ee5de96e0a124853ce (patch) | |
tree | b6cafb4d5c7877501f19472b86d5341c9c4d7499 | |
parent | d6bd5d7b4c4b71e8c256729ae1954e3f27855a00 (diff) | |
download | librest-297e559225f440df88f2c7ee5de96e0a124853ce.tar.gz |
RestProxyCall: Add documentation for _sync
-rw-r--r-- | rest/rest-proxy-call.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index 9384b5b..f45d3af 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -1212,6 +1212,20 @@ rest_proxy_call_cancel (RestProxyCall *call) return TRUE; } +/** + * rest_proxy_call_sync: + * @call: a #RestProxycall + * @error_out: a #GError or %NULL + * + * Synchronously invokes @call. After this function has returned, + * rest_proxy_call_get_payload() will return the result of this call. + * + * Note that this will block an undefined amount of time, so + * rest_proxy_call_invoke_async() is generally recommended. + * + * Returns: %TRUE on success, %FALSE if a failure occurred, + * in which case @error_out will be set. + */ gboolean rest_proxy_call_sync (RestProxyCall *call, GError **error_out) |