diff options
author | Jaganath Kanakkassery <jaganath.k@samsung.com> | 2012-05-04 15:27:04 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:22:06 +0100 |
commit | 9095deb82572112fc0870095bf2222964610eafe (patch) | |
tree | 8e0ae532690d14fbe005c0e6c543e346f4efb408 /gobex/gobex.c | |
parent | cd8a24b9fab5d608c79ed8a187965ad3fc25f2bc (diff) | |
download | bluez-9095deb82572112fc0870095bf2222964610eafe.tar.gz |
gobex: Add callback and userdata parameter to g_obex_cancel_transfer()
If callback is provided in g_obex_cancel_transfer() current complete
callback will be replaced by the new one and user will be informed
when abort completes.
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r-- | gobex/gobex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index f31b73315..b20542df5 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -684,7 +684,7 @@ static gint pending_pkt_cmp(gconstpointer a, gconstpointer b) return (p->id - id); } -static gboolean pending_req_abort(GObex *obex, GError **err) +gboolean g_obex_pending_req_abort(GObex *obex, GError **err) { struct pending_pkt *p = obex->pending_req; GObexPacket *req; @@ -728,7 +728,7 @@ gboolean g_obex_cancel_req(GObex *obex, guint req_id, gboolean remove_callback) struct pending_pkt *p; if (obex->pending_req && obex->pending_req->id == req_id) { - if (!pending_req_abort(obex, NULL)) { + if (!g_obex_pending_req_abort(obex, NULL)) { p = obex->pending_req; obex->pending_req = NULL; goto immediate_completion; |