summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 13:09:30 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-06-05 13:41:57 +0300
commit56011473ac9e8612ed873b30cb261d6948260e19 (patch)
treecb4c8ef614ff18fd2b8296ec17f9a1155589e9e2
parent95d716b2ee43544dacd08ee82b4da490925b3900 (diff)
downloadobexd-56011473ac9e8612ed873b30cb261d6948260e19.tar.gz
test: Use org.bluez.obex namespace in exchange-business-cards script
-rwxr-xr-xtest/exchange-business-cards11
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])