[PATCH BlueZ 2/2] test: Use existing AGENT_PATH variable on simple-agent

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

 



---
 test/simple-agent |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/test/simple-agent b/test/simple-agent
index 64b2ca8..5475770 100755
--- a/test/simple-agent
+++ b/test/simple-agent
@@ -148,14 +148,13 @@ if __name__ == '__main__':
 	if options.capability:
 		capability  = options.capability
 
-	path = "/test/agent"
-	agent = Agent(bus, path)
+	agent = Agent(bus, AGENT_PATH)
 
 	mainloop = GObject.MainLoop()
 
 	obj = bus.get_object(BUS_NAME, "/org/bluez");
 	manager = dbus.Interface(obj, "org.bluez.AgentManager1")
-	manager.RegisterAgent(path, capability)
+	manager.RegisterAgent(AGENT_PATH, capability)
 
 	print("Agent registered")
 
@@ -173,6 +172,6 @@ if __name__ == '__main__':
 								timeout=60000)
 		device_obj = device
 	else:
-		manager.RequestDefaultAgent(path)
+		manager.RequestDefaultAgent(AGENT_PATH)
 
 	mainloop.run()
-- 
1.7.9.5

--
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