diff options
author | Rob Bradford <rob@linux.intel.com> | 2008-11-20 15:54:50 +0000 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2008-11-20 15:54:50 +0000 |
commit | 5ac031c2f85e7b9f99e398376c0e230de0c88408 (patch) | |
tree | fd037dc14779d833d0dd1dbcf38e021f8c369d27 /rest/rest-proxy.c | |
parent | 39d746c84942b264204f409752257ecff7134836 (diff) | |
download | librest-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.c | 11 |
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); +} |