summaryrefslogtreecommitdiffstats
path: root/test/simple-service
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-08 10:30:05 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-08 10:30:05 +0300
commit17370895fde2d210bb50dfaa1c89fe6601de3467 (patch)
tree2797d5e061b7948a53f270f9ccfcc31b1c0ad6f5 /test/simple-service
parentfa141e676e82cd20082779c086d1fef6427fdc20 (diff)
parent393416b170d6e4b2b7406418d63c7be2aefda70f (diff)
Merge branch 'master' of ssh://master.kernel.org/pub/scm/bluetooth/bluez
Diffstat (limited to 'test/simple-service')
-rwxr-xr-xtest/simple-service8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/simple-service b/test/simple-service
index 5279a3a6..d03ec3db 100755
--- a/test/simple-service
+++ b/test/simple-service
@@ -109,10 +109,10 @@ if len(sys.argv) > 1:
else:
path = manager.DefaultAdapter()
-adapter = dbus.Interface(bus.get_object("org.bluez", path),
- "org.bluez.Adapter")
+service = dbus.Interface(bus.get_object("org.bluez", path),
+ "org.bluez.Service")
-handle = adapter.AddServiceRecord(xml)
+handle = service.AddRecord(xml)
print "Service record with handle 0x%04x added" % (handle)
@@ -124,4 +124,4 @@ try:
except:
pass
-adapter.RemoveServiceRecord(dbus.UInt32(handle))
+service.RemoveRecord(dbus.UInt32(handle))