diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-06-05 13:09:30 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-06-05 13:41:57 +0300 |
commit | 56011473ac9e8612ed873b30cb261d6948260e19 (patch) | |
tree | cb4c8ef614ff18fd2b8296ec17f9a1155589e9e2 | |
parent | 95d716b2ee43544dacd08ee82b4da490925b3900 (diff) | |
download | obexd-56011473ac9e8612ed873b30cb261d6948260e19.tar.gz |
test: Use org.bluez.obex namespace in exchange-business-cards script
-rwxr-xr-x | test/exchange-business-cards | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/exchange-business-cards b/test/exchange-business-cards index 4abe426..aace07b 100755 --- a/test/exchange-business-cards +++ b/test/exchange-business-cards @@ -4,17 +4,16 @@ import sys import dbus bus = dbus.SessionBus() -client = dbus.Interface(bus.get_object("org.openobex.client", "/"), - "org.openobex.Client") +client = dbus.Interface(bus.get_object("org.bluez.obex.client", "/"), + "org.bluez.obex.Client") if (len(sys.argv) < 4): print "Usage: %s <device> <clientfile> <file>" % (sys.argv[0]) sys.exit(1) print "Creating Session" -session_path = client.CreateSession(sys.argv[1], { "Target": "OPP" }) -opp = dbus.Interface(bus.get_object("org.openobex.client", - session_path), - "org.openobex.ObjectPush") +path = client.CreateSession(sys.argv[1], { "Target": "OPP" }) +opp = dbus.Interface(bus.get_object("org.bluez.obex.client", path), + "org.bluez.obex.ObjectPush") opp.ExchangeBusinessCards(sys.argv[2], sys.argv[3]) |