summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-09-06 04:23:46 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-09-06 04:23:46 +0200
commit6e5682847b6167fb028f10a0983fe8bd995391c9 (patch)
treef4b9fab4fe15f133484bc0b0bb34afe11de42c56 /test
parentb326ad96e35e4abcd0466a82e5c92c727c8cc2af (diff)
Fix the simple service example
Diffstat (limited to 'test')
-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))