linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anderson Lizardo <anderson.lizardo@openbossa.org>
To: linux-bluetooth@vger.kernel.org
Cc: Anderson Lizardo <anderson.lizardo@openbossa.org>
Subject: [PATCH BlueZ 2/2] test: Use existing AGENT_PATH variable on simple-agent
Date: Thu, 16 May 2013 09:24:55 -0400	[thread overview]
Message-ID: <1368710695-22623-2-git-send-email-anderson.lizardo@openbossa.org> (raw)
In-Reply-To: <1368710695-22623-1-git-send-email-anderson.lizardo@openbossa.org>

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


  reply	other threads:[~2013-05-16 13:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16 13:24 [PATCH BlueZ 1/2] test: Remove commented out code from simple-agent Anderson Lizardo
2013-05-16 13:24 ` Anderson Lizardo [this message]
2013-05-16 13:45 ` Marcel Holtmann
2013-05-16 16:23   ` Anderson Lizardo
2013-05-17  5:15     ` Marcel Holtmann
2013-05-17 12:33       ` Luiz Augusto von Dentz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1368710695-22623-2-git-send-email-anderson.lizardo@openbossa.org \
    --to=anderson.lizardo@openbossa.org \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).