linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] proximity: Fix Proximity API to match documentation
@ 2012-02-03 13:42 Anderson Lizardo
  2012-02-09 12:59 ` Anderson Lizardo
  2012-02-09 13:11 ` Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Anderson Lizardo @ 2012-02-03 13:42 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

Recently, the documented D-Bus interface for Proximity was changed to
prepare for the upcoming Proximity Reporter API.
---
 proximity/monitor.c |    2 +-
 test/test-proximity |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/proximity/monitor.c b/proximity/monitor.c
index 76020ee..7bf95a1 100644
--- a/proximity/monitor.c
+++ b/proximity/monitor.c
@@ -49,7 +49,7 @@
 #include "monitor.h"
 #include "textfile.h"
 
-#define PROXIMITY_INTERFACE "org.bluez.Proximity"
+#define PROXIMITY_INTERFACE "org.bluez.ProximityMonitor"
 
 #define ALERT_LEVEL_CHR_UUID 0x2A06
 #define POWER_LEVEL_CHR_UUID 0x2A07
diff --git a/test/test-proximity b/test/test-proximity
index 289908e..130590c 100755
--- a/test/test-proximity
+++ b/test/test-proximity
@@ -53,11 +53,11 @@ if __name__ == "__main__":
 	device_path = adapter.FindDevice(options.address)
 
 	bus.add_signal_receiver(property_changed, bus_name="org.bluez",
-				dbus_interface="org.bluez.Proximity",
+				dbus_interface="org.bluez.ProximityMonitor",
 				signal_name="PropertyChanged")
 
 	proximity = dbus.Interface(bus.get_object("org.bluez",
-					device_path), "org.bluez.Proximity")
+					device_path), "org.bluez.ProximityMonitor")
 
 	print "Proximity SetProperty('%s', '%s')" % (args[0], args[1])
 	proximity.SetProperty(args[0], args[1])
-- 
1.7.5.4


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

* Re: [PATCH BlueZ] proximity: Fix Proximity API to match documentation
  2012-02-03 13:42 [PATCH BlueZ] proximity: Fix Proximity API to match documentation Anderson Lizardo
@ 2012-02-09 12:59 ` Anderson Lizardo
  2012-02-09 13:11 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Anderson Lizardo @ 2012-02-09 12:59 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Anderson Lizardo

ping

On Fri, Feb 3, 2012 at 9:42 AM, Anderson Lizardo
<anderson.lizardo@openbossa.org> wrote:
> Recently, the documented D-Bus interface for Proximity was changed to
> prepare for the upcoming Proximity Reporter API.
> ---
>  proximity/monitor.c |    2 +-
>  test/test-proximity |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/proximity/monitor.c b/proximity/monitor.c
> index 76020ee..7bf95a1 100644
> --- a/proximity/monitor.c
> +++ b/proximity/monitor.c
> @@ -49,7 +49,7 @@
>  #include "monitor.h"
>  #include "textfile.h"
>
> -#define PROXIMITY_INTERFACE "org.bluez.Proximity"
> +#define PROXIMITY_INTERFACE "org.bluez.ProximityMonitor"
>
>  #define ALERT_LEVEL_CHR_UUID 0x2A06
>  #define POWER_LEVEL_CHR_UUID 0x2A07
> diff --git a/test/test-proximity b/test/test-proximity
> index 289908e..130590c 100755
> --- a/test/test-proximity
> +++ b/test/test-proximity
> @@ -53,11 +53,11 @@ if __name__ == "__main__":
>        device_path = adapter.FindDevice(options.address)
>
>        bus.add_signal_receiver(property_changed, bus_name="org.bluez",
> -                               dbus_interface="org.bluez.Proximity",
> +                               dbus_interface="org.bluez.ProximityMonitor",
>                                signal_name="PropertyChanged")
>
>        proximity = dbus.Interface(bus.get_object("org.bluez",
> -                                       device_path), "org.bluez.Proximity")
> +                                       device_path), "org.bluez.ProximityMonitor")
>
>        print "Proximity SetProperty('%s', '%s')" % (args[0], args[1])
>        proximity.SetProperty(args[0], args[1])
> --
> 1.7.5.4
>



-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil

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

* Re: [PATCH BlueZ] proximity: Fix Proximity API to match documentation
  2012-02-03 13:42 [PATCH BlueZ] proximity: Fix Proximity API to match documentation Anderson Lizardo
  2012-02-09 12:59 ` Anderson Lizardo
@ 2012-02-09 13:11 ` Johan Hedberg
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hedberg @ 2012-02-09 13:11 UTC (permalink / raw)
  To: Anderson Lizardo; +Cc: linux-bluetooth

Hi Lizardo,

On Fri, Feb 03, 2012, Anderson Lizardo wrote:
> Recently, the documented D-Bus interface for Proximity was changed to
> prepare for the upcoming Proximity Reporter API.
> ---
>  proximity/monitor.c |    2 +-
>  test/test-proximity |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied. Thanks.

Johan

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

end of thread, other threads:[~2012-02-09 13:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-03 13:42 [PATCH BlueZ] proximity: Fix Proximity API to match documentation Anderson Lizardo
2012-02-09 12:59 ` Anderson Lizardo
2012-02-09 13:11 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).