diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-08-27 17:16:06 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-08-29 10:32:26 +0300 |
commit | 3ff1f6b5e8902c6e7c37db0e84cd284648b4d272 (patch) | |
tree | df5f03f7405fbb93f8b32796cb31cade0a925e9f /gobex/gobex.c | |
parent | 765fc36308c8d806a597bb9eae13bdff82e081d8 (diff) | |
download | bluez-3ff1f6b5e8902c6e7c37db0e84cd284648b4d272.tar.gz |
gobex: Add g_obex_abort
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r-- | gobex/gobex.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index e9a08fa71..42175fcc0 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -1676,6 +1676,16 @@ guint g_obex_move(GObex *obex, const char *name, const char *dest, return g_obex_send_req(obex, req, -1, func, user_data, err); } +guint g_obex_abort(GObex *obex, GObexResponseFunc func, gpointer user_data, + GError **err) +{ + GObexPacket *req; + + req = g_obex_packet_new(G_OBEX_OP_ABORT, TRUE, G_OBEX_HDR_INVALID); + + return g_obex_send_req(obex, req, -1, func, user_data, err); +} + guint8 g_obex_errno_to_rsp(int err) { switch (err) { |