summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gobex/gobex.c12
-rw-r--r--gobex/gobex.h3
2 files changed, 15 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)
{
diff --git a/gobex/gobex.h b/gobex/gobex.h
index 76a224ed8..7c4759055 100644
--- a/gobex/gobex.h
+++ b/gobex/gobex.h
@@ -75,6 +75,9 @@ void g_obex_unref(GObex *obex);
guint g_obex_connect(GObex *obex, GObexResponseFunc func, gpointer user_data,
GError **err, guint8 first_hdr_id, ...);
+guint g_obex_disconnect(GObex *obex, GObexResponseFunc func, gpointer user_data,
+ GError **err);
+
guint g_obex_setpath(GObex *obex, const char *path, GObexResponseFunc func,
gpointer user_data, GError **err);