[PATCH v0 2/3] list-services: Use GetServices() instead GetProperties()

Daniel Wagner wagi at monom.org
Sun Feb 26 04:01:37 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

GetProperties() does not return the services path anymore. Instead
the GetServices() method should be used.
---
 test/list-services |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/test/list-services b/test/list-services
index c403f85..be447b8 100755
--- a/test/list-services
+++ b/test/list-services
@@ -28,14 +28,9 @@ bus = dbus.SystemBus()
 manager = dbus.Interface(bus.get_object("net.connman", "/"),
 					"net.connman.Manager")
 
-properties = manager.GetProperties()
-
-for path in properties["Services"]:
+for path, properties in manager.GetServices():
 	service = dbus.Interface(bus.get_object("net.connman", path),
 						"net.connman.Service")
-
-	properties = service.GetProperties()
-
 	print "[ %s ]" % (path)
 
 	for key in properties.keys():
-- 
1.7.8.110.g4cb5d1




More information about the connman mailing list