summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.c
diff options
context:
space:
mode:
authorRob Bradford <rob@linux.intel.com>2008-11-20 15:54:50 +0000
committerRob Bradford <rob@linux.intel.com>2008-11-20 15:54:50 +0000
commit5ac031c2f85e7b9f99e398376c0e230de0c88408 (patch)
treefd037dc14779d833d0dd1dbcf38e021f8c369d27 /rest/rest-proxy.c
parent39d746c84942b264204f409752257ecff7134836 (diff)
downloadlibrest-5ac031c2f85e7b9f99e398376c0e230de0c88408.tar.gz
Add a rest_proxy_call_cancel function to cancel an issued call.
This function is now used by the weak notify handler to cancel the call when the weakly referenced object goes away.
Diffstat (limited to 'rest/rest-proxy.c')
-rw-r--r--rest/rest-proxy.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 361d325..a341ef6 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -344,3 +344,14 @@ _rest_proxy_queue_message (RestProxy *proxy,
NULL,
NULL);
}
+
+void
+_rest_proxy_cancel_message (RestProxy *proxy,
+ SoupMessage *message)
+{
+ RestProxyPrivate *priv = GET_PRIVATE (proxy);
+
+ soup_session_cancel_message (priv->session,
+ message,
+ SOUP_STATUS_CANCELLED);
+}