OSDN Git Service

gobex: Use g_obex_respose in test-server
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 4 Jul 2011 19:13:53 +0000 (22:13 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 4 Dec 2012 21:21:58 +0000 (22:21 +0100)
tools/obex-server-tool.c

index 192ab5f..f82daad 100644 (file)
@@ -64,6 +64,8 @@ static void disconn_func(GObex *obex, GError *err, gpointer user_data)
 static void req_func(GObex *obex, GObexPacket *req, gpointer user_data)
 {
        g_print("Request 0x%02x\n", g_obex_packet_get_operation(req, NULL));
+
+       g_obex_response(obex, req, G_OBEX_RSP_SUCCESS, NULL, NULL);
 }
 
 static gboolean unix_accept(GIOChannel *chan, GIOCondition cond, gpointer data)