Diff between 0794989ac8cd62fc4818b82873c22ebedae3a12a and 6bca789ddd34da6560078d4d5de7a3f803f79c8d

Changed Files

File Additions Deletions Status
tools/obex-client-tool.c +10 -0 modified

Full Patch

diff --git a/tools/obex-client-tool.c b/tools/obex-client-tool.c
index 0f9c4dc..f544d0b 100644
--- a/tools/obex-client-tool.c
+++ b/tools/obex-client-tool.c
@@ -99,8 +99,18 @@ static GIOChannel *unix_connect(void)
 	return io;
 }
 
+static void conn_complete(GObex *obex, GError *err, GObexPacket *rsp,
+							gpointer user_data)
+{
+	if (err != NULL)
+		g_print("Connect failed: %s\n", err->message);
+	else
+		g_print("Connect succeeded\n");
+}
+
 static void cmd_connect(int argc, char **argv)
 {
+	g_obex_connect(obex, NULL, 0, conn_complete, NULL, NULL);
 }
 
 static void cmd_help(int argc, char **argv);