diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-21 12:56:08 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-03-21 16:13:45 +0200 |
commit | c4472927993a25529888f33b840d24640ad4a7d0 (patch) | |
tree | a6e083a3a836ed491d4f69f73ef8c9683ac34ca0 /gobex/gobex.c | |
parent | 505209264c2cc1d38a2f16e9cedb16db977ac090 (diff) | |
download | bluez-c4472927993a25529888f33b840d24640ad4a7d0.tar.gz |
gobex: Add g_obex_disconnect
This adds g_obex_disconnect function which can be used to send OBEX
Disconnect command.
Diffstat (limited to 'gobex/gobex.c')
-rw-r--r-- | gobex/gobex.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gobex/gobex.c b/gobex/gobex.c index d7d325b41..ca1594111 100644 --- a/gobex/gobex.c +++ b/gobex/gobex.c @@ -1445,6 +1445,18 @@ guint g_obex_connect(GObex *obex, GObexResponseFunc func, gpointer user_data, return g_obex_send_req(obex, req, -1, func, user_data, err); } +guint g_obex_disconnect(GObex *obex, GObexResponseFunc func, gpointer user_data, + GError **err) +{ + GObexPacket *req; + + g_obex_debug(G_OBEX_DEBUG_COMMAND, ""); + + req = g_obex_packet_new(G_OBEX_OP_DISCONNECT, TRUE, G_OBEX_HDR_INVALID); + + return g_obex_send_req(obex, req, -1, func, user_data, err); +} + guint g_obex_setpath(GObex *obex, const char *path, GObexResponseFunc func, gpointer user_data, GError **err) { |