[PATCH 5/6] Add FindAdapter method call to obex-client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 client/session.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/client/session.c b/client/session.c
index 423eb8c..d8e3bf2 100644
--- a/client/session.c
+++ b/client/session.c
@@ -848,11 +848,21 @@ proceed:
 	callback->func = function;
 	callback->data = user_data;
 
-	req = send_method_call(session->conn_system,
+	if (source) {
+		req = send_method_call(session->conn_system,
+				BT_BUS_NAME, BT_PATH,
+				BT_MANAGER_IFACE, "FindAdapter",
+				manager_reply, callback,
+				DBUS_TYPE_STRING, &source,
+				DBUS_TYPE_INVALID);
+	} else {
+		req = send_method_call(session->conn_system,
 				BT_BUS_NAME, BT_PATH,
 				BT_MANAGER_IFACE, "DefaultAdapter",
 				manager_reply, callback,
 				DBUS_TYPE_INVALID);
+	}
+
 	if (!req) {
 		session_unref(session);
 		g_free(callback);
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux