Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Remove call to non-existing Adapter method call
@ 2010-09-01 10:09 Bartlomiej.Grzeskowiak
  2010-09-01 10:33 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Bartlomiej.Grzeskowiak @ 2010-09-01 10:09 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 36 bytes --]

Patch for /test/test-service file.

[-- Attachment #2: 0001-Remove-call-to-non-existing-Adapter-method-call.patch --]
[-- Type: application/octet-stream, Size: 1115 bytes --]

From 0bbfece9864c3ce14a541447a373bf101d5d8a5b Mon Sep 17 00:00:00 2001
From: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@tieto.com>
Date: Tue, 31 Aug 2010 16:20:30 +0200
Subject: [PATCH] Remove call to non-existing Adapter method call

Use Service.AddRecord() instead of Adapter.AddRecord().
---
 test/test-service |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/test/test-service b/test/test-service
index dae40fc..8958201 100755
--- a/test/test-service
+++ b/test/test-service
@@ -22,8 +22,8 @@ if options.dev_id:
 else:
 	adapter_path = manager.DefaultAdapter()
 
-adapter = dbus.Interface(bus.get_object("org.bluez", adapter_path),
-							"org.bluez.Adapter")
+service = dbus.Interface(bus.get_object("org.bluez", adapter_path),
+						"org.bluez.Service")
 
 if (len(args) < 1):
 	print "Usage: %s <command>" % (sys.argv[0])
@@ -38,7 +38,7 @@ if (args[0] == "addrecord"):
 		f = open(args[1])
 		record = f.read()
 		f.close()
-		handle = adapter.AddRecord(record)
+		handle = service.AddRecord(record)
 		print "0x%x" % (handle)
 		time.sleep(120)
 	sys.exit(0)
-- 
1.5.6.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Remove call to non-existing Adapter method call
  2010-09-01 10:09 [PATCH] Remove call to non-existing Adapter method call Bartlomiej.Grzeskowiak
@ 2010-09-01 10:33 ` Johan Hedberg
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hedberg @ 2010-09-01 10:33 UTC (permalink / raw)
  To: Bartlomiej.Grzeskowiak; +Cc: linux-bluetooth

Hi,

On Wed, Sep 01, 2010, Bartlomiej.Grzeskowiak@tieto.com wrote:
> Patch for /test/test-service file.

Thanks. The patch is now upstream.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-01 10:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 10:09 [PATCH] Remove call to non-existing Adapter method call Bartlomiej.Grzeskowiak
2010-09-01 10:33 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox