diff options
author | Ross Burton <ross.burton@intel.com> | 2012-03-27 12:16:54 +0100 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2012-03-27 12:16:54 +0100 |
commit | d09f790e05047d1880c8034a562d6fad88da2643 (patch) | |
tree | c7b1fce46b3c15e05993c0d653c2580454fdf22d | |
parent | cfa07569426fa4ac970c12e378c38087c2106fd1 (diff) |
Rename rest_proxy_call_call_async to rest_proxy_call_invoke_async
-rw-r--r-- | rest/rest-proxy-call.c | 22 | ||||
-rw-r--r-- | rest/rest-proxy-call.h | 14 |
2 files changed, 18 insertions, 18 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index 15d71d4..fcbde07 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -937,7 +937,7 @@ _call_message_call_completed_cb (SoupSession *session, } /** - * rest_proxy_call_call_async: + * rest_proxy_call_invoke_async: * @call: a #RestProxyCall * @cancellable: (allow-none): an optional #GCancellable that can be used to * cancel the call, or %NULL @@ -947,10 +947,10 @@ _call_message_call_completed_cb (SoupSession *session, * A GIO-style version of rest_proxy_call_async(). */ void -rest_proxy_call_call_async (RestProxyCall *call, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data) +rest_proxy_call_invoke_async (RestProxyCall *call, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data) { GSimpleAsyncResult *result; RestProxyCallPrivate *priv; @@ -966,11 +966,11 @@ rest_proxy_call_call_async (RestProxyCall *call, { g_simple_async_report_take_gerror_in_idle (G_OBJECT (call), callback, user_data, error); - return; + goto error; } result = g_simple_async_result_new (G_OBJECT (call), callback, - user_data, rest_proxy_call_call_async); + user_data, rest_proxy_call_invoke_async); if (cancellable != NULL) g_signal_connect (cancellable, "cancelled", @@ -983,7 +983,7 @@ rest_proxy_call_call_async (RestProxyCall *call, } /** - * rest_proxy_call_call_finish: + * rest_proxy_call_invoke_finish: * @call: a #RestProxyCall * @result: the result from the #GAsyncReadyCallback * @error: optional #GError @@ -991,7 +991,7 @@ rest_proxy_call_call_async (RestProxyCall *call, * Returns: %TRUE on success */ gboolean -rest_proxy_call_call_finish (RestProxyCall *call, +rest_proxy_call_invoke_finish (RestProxyCall *call, GAsyncResult *result, GError **error) { @@ -1003,7 +1003,7 @@ rest_proxy_call_call_finish (RestProxyCall *call, simple = G_SIMPLE_ASYNC_RESULT (result); g_return_val_if_fail (g_simple_async_result_is_valid (result, - G_OBJECT (call), rest_proxy_call_call_async), FALSE); + G_OBJECT (call), rest_proxy_call_invoke_async), FALSE); if (g_simple_async_result_propagate_error (simple, error)) return FALSE; @@ -1262,7 +1262,7 @@ error: * the callback will not be invoked. * * N.B. this method should only be used with rest_proxy_call_async() and NOT - * rest_proxy_call_call_async(). + * rest_proxy_call_invoke_async(). */ gboolean rest_proxy_call_cancel (RestProxyCall *call) diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h index cc0b575..b2603f9 100644 --- a/rest/rest-proxy-call.h +++ b/rest/rest-proxy-call.h @@ -163,13 +163,13 @@ gboolean rest_proxy_call_async (RestProxyCall *call, gpointer userdata, GError **error); -void rest_proxy_call_call_async (RestProxyCall *call, - GCancellable *cancellable, - GAsyncReadyCallback callback, - gpointer user_data); -gboolean rest_proxy_call_call_finish (RestProxyCall *call, - GAsyncResult *result, - GError **error); +void rest_proxy_call_invoke_async (RestProxyCall *call, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); +gboolean rest_proxy_call_invoke_finish (RestProxyCall *call, + GAsyncResult *result, + GError **error); typedef void (*RestProxyCallContinuousCallback) (RestProxyCall *call, const gchar *buf, |