Change service name from org.moblin.connman to net.connman
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 26 Nov 2010 09:57:42 +0000 (10:57 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 26 Nov 2010 09:57:42 +0000 (10:57 +0100)
41 files changed:
client/main.c
doc/agent-api.txt
doc/counter-api.txt
doc/manager-api.txt
doc/overview-api.txt
doc/profile-api.txt
doc/service-api.txt
doc/technology-api.txt
include/dbus.h
plugins/dhclient.c
plugins/polkit.c
plugins/polkit.policy
src/connman-dbus.conf
src/connman-polkit.conf
src/connman.service.in
test/connect-service
test/connect-vpn
test/disable-tethering
test/disconnect-vpn
test/enable-tethering
test/find-service
test/get-proxy-autoconfig
test/get-services
test/get-state
test/list-profiles
test/list-services
test/monitor-connman
test/monitor-manager
test/monitor-services
test/set-address
test/set-domains
test/set-ip-method
test/set-nameservers
test/set-proxy
test/show-introspection
test/simple-agent
test/test-connman
test/test-counter
test/test-manager
test/test-profile
tools/dhclient-test.c

index 3d29c16..6719436 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <dbus/dbus.h>
 
-#define CONNMAN_SERVICE                        "org.moblin.connman"
+#define CONNMAN_SERVICE                        "net.connman"
 
 #define CONNMAN_MANAGER_INTERFACE      CONNMAN_SERVICE ".Manager"
 #define CONNMAN_MANAGER_PATH           "/"
index 1aa06b6..644b678 100644 (file)
@@ -2,7 +2,7 @@ Agent hierarchy
 ===============
 
 Service                unique name
-Interface      org.moblin.connman.Agent
+Interface      net.connman.Agent
 Object path    freely definable
 
 Methods                void Release()
index 5f28651..9ec5f21 100644 (file)
@@ -2,7 +2,7 @@ Counter hierarchy
 =================
 
 Service                unique name
-Interface      org.moblin.connman.Counter
+Interface      net.connman.Counter
 Object path    freely definable
 
 Methods                void Release()
index d8f1f4e..743ba18 100644 (file)
@@ -1,8 +1,8 @@
 Manager hierarchy
 =================
 
-Service                org.moblin.connman
-Interface      org.moblin.connman.Manager
+Service                net.connman
+Interface      net.connman.Manager
 Object path    /
 
 Methods                dict GetProperties()
index b83e89a..926f9eb 100644 (file)
@@ -335,8 +335,8 @@ A simple way to retrieve all global properties looks like this:
 
        bus = dbus.SystemBus()
 
-       manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                               "org.moblin.connman.Manager")
+       manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                               "net.connman.Manager")
 
        properties = manager.GetProperties()
 
@@ -366,8 +366,8 @@ are the exact details users should care about.
        properties = manager.GetProperties()
 
        for path in properties["Services"]:
-               service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                                       "org.moblin.connman.Service")
+               service = dbus.Interface(bus.get_object("net.connman", path),
+                                                       "net.connman.Service")
 
                service_properties = service.GetProperties()
 
index b30f418..eba5625 100644 (file)
@@ -1,8 +1,8 @@
 Profile hierarchy
 =================
 
-Service                org.moblin.connman
-Interface      org.moblin.connman.Profile
+Service                net.connman
+Interface      net.connman.Profile
 Object path    [variable prefix]/{profile0,profile1,...}
 
 Methods                dict GetProperties()
index d774507..d309736 100644 (file)
@@ -1,8 +1,8 @@
 Service hierarchy
 =================
 
-Service                org.moblin.connman
-Interface      org.moblin.connman.Service
+Service                net.connman
+Interface      net.connman.Service
 Object path    [variable prefix]/{service0,service1,...}
 
 Methods                dict GetProperties()
index 0c8789d..497c988 100644 (file)
@@ -1,8 +1,8 @@
 Technology hierarchy
 ====================
 
-Service                org.moblin.connman
-Interface      org.moblin.connman.Technology
+Service                net.connman
+Interface      net.connman.Technology
 Object path    [variable prefix]/{technology0,technology1,...}
 
 Methods                dict GetProperties()
index c321690..9be76b2 100644 (file)
@@ -28,8 +28,8 @@
 extern "C" {
 #endif
 
-#define CONNMAN_SERVICE                        "org.moblin.connman"
-#define CONNMAN_PATH                   "/org/moblin/connman"
+#define CONNMAN_SERVICE                        "net.connman"
+#define CONNMAN_PATH                   "/net/connman"
 
 #define CONNMAN_DEBUG_INTERFACE                CONNMAN_SERVICE ".Debug"
 #define CONNMAN_ERROR_INTERFACE                CONNMAN_SERVICE ".Error"
index e63e1dc..7e74a93 100644 (file)
@@ -148,13 +148,13 @@ static void dhclient_died(struct connman_task *task, void *user_data)
 
 static void dhclient_setup(struct connman_task *task, const char *ifname)
 {
-       const char *path, *intf = "org.moblin.connman.Task";
+       const char *path, *intf = "net.connman.Task";
 
        path = connman_task_get_path(task);
 
        connman_task_add_argument(task, "-d", NULL);
        connman_task_add_argument(task, "-q", NULL);
-       connman_task_add_argument(task, "-e", "BUSNAME=org.moblin.connman");
+       connman_task_add_argument(task, "-e", "BUSNAME=net.connman");
        connman_task_add_argument(task, "-e", "BUSINTF=%s", intf);
        connman_task_add_argument(task, "-e", "BUSPATH=%s", path);
        connman_task_add_argument(task, "-pf", "%s/dhclient.%s.pid",
index 137dc9b..0b232d9 100644 (file)
 #include <connman/dbus.h>
 
 static const GDBusSecurityTable polkit_security[] = {
-       { CONNMAN_PRIVILEGE_MODIFY, "org.moblin.connman.modify",
+       { CONNMAN_PRIVILEGE_MODIFY, "net.connman.modify",
                                G_DBUS_SECURITY_FLAG_BUILTIN |
                                G_DBUS_SECURITY_FLAG_ALLOW_INTERACTION },
-       { CONNMAN_PRIVILEGE_SECRET, "org.moblin.connman.secret",
+       { CONNMAN_PRIVILEGE_SECRET, "net.connman.secret",
                                G_DBUS_SECURITY_FLAG_BUILTIN |
                                G_DBUS_SECURITY_FLAG_ALLOW_INTERACTION },
        { }
index 79d5c73..0c2629a 100644 (file)
@@ -8,7 +8,7 @@
   <vendor>Connection Manager</vendor>
   <icon_name>network-wireless</icon_name>
 
-  <action id="org.moblin.connman.modify">
+  <action id="net.connman.modify">
     <description>Settings configuration</description>
     <message>Policy prevents modification of settings</message>
     <defaults>
@@ -17,7 +17,7 @@
     </defaults>
   </action>
 
-  <action id="org.moblin.connman.secret">
+  <action id="net.connman.secret">
     <description>Secrets configuration</description>
     <message>Policy prevents modification of secrets</message>
     <defaults>
index 3b130d9..311f28c 100644 (file)
@@ -2,15 +2,15 @@
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
     <policy user="root">
-        <allow own="org.moblin.connman"/>
-        <allow send_destination="org.moblin.connman"/>
-        <allow send_interface="org.moblin.connman.Agent"/>
-        <allow send_interface="org.moblin.connman.Counter"/>
+        <allow own="net.connman"/>
+        <allow send_destination="net.connman"/>
+        <allow send_interface="net.connman.Agent"/>
+        <allow send_interface="net.connman.Counter"/>
     </policy>
     <policy at_console="true">
-        <allow send_destination="org.moblin.connman"/>
+        <allow send_destination="net.connman"/>
     </policy>
     <policy context="default">
-        <deny send_destination="org.moblin.connman"/>
+        <deny send_destination="net.connman"/>
     </policy>
 </busconfig>
index 9e44b8b..fdddb29 100644 (file)
@@ -2,10 +2,10 @@
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
     <policy user="root">
-        <allow own="org.moblin.connman"/>
-        <allow send_interface="org.moblin.connman.Agent"/>
+        <allow own="net.connman"/>
+        <allow send_interface="net.connman.Agent"/>
     </policy>
     <policy context="default">
-        <allow send_destination="org.moblin.connman"/>
+        <allow send_destination="net.connman"/>
     </policy>
 </busconfig>
index d600e40..a234a0c 100644 (file)
@@ -4,7 +4,7 @@ After=syslog.target
 
 [Service]
 Type=dbus
-BusName=org.moblin.connman
+BusName=net.connman
 ExecStart=@prefix@/sbin/connmand -n
 
 [Install]
index 8dabdba..2d88cb5 100755 (executable)
@@ -9,8 +9,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 print "Attempting to connect service %s" % (sys.argv[1])
 
index 7722ee9..a43c4cd 100755 (executable)
@@ -13,8 +13,8 @@ if (len(sys.argv) < 4):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 print "Attempting to connect service %s" % (sys.argv[3])
 
index 57c5575..01cc96c 100755 (executable)
@@ -4,7 +4,7 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
 manager.SetProperty("Tethering", dbus.Boolean(0));
index 21b50d8..9a6620c 100755 (executable)
@@ -9,8 +9,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 path = "" + sys.argv[1]
 
index 49c4a4d..51a9cca 100755 (executable)
@@ -4,7 +4,7 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
 manager.SetProperty("Tethering", dbus.Boolean(1));
index e9aad17..c53e6eb 100755 (executable)
@@ -9,8 +9,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', '/'),
+                                       'net.connman.Manager')
 
 path = manager.LookupService(sys.argv[1])
 
index a93605a..6709a9e 100755 (executable)
@@ -11,8 +11,8 @@ def get_pac(url):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', '/'),
+                                       'net.connman.Manager')
 
 services = manager.GetServices()
 
index 3fec394..29d4ea0 100755 (executable)
@@ -22,8 +22,8 @@ def extract_list(list):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', '/'),
+                                       'net.connman.Manager')
 
 services = manager.GetServices()
 
index 38c1dc9..75d5a16 100755 (executable)
@@ -4,8 +4,8 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
 properties = manager.GetProperties()
 
index 710a36c..b9b9103 100755 (executable)
@@ -4,8 +4,8 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 properties = manager.GetProperties()
 
@@ -17,8 +17,8 @@ for path in properties["Profiles"]:
        else:
                print "[ %s ]" % (path)
 
-       profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Profile")
+       profile = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Profile")
 
        properties = profile.GetProperties()
        for key in properties.keys():
index c4ae5d7..66dfe5c 100755 (executable)
@@ -25,14 +25,14 @@ def extract_list(list):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 properties = manager.GetProperties()
 
 for path in properties["Services"]:
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        properties = service.GetProperties()
 
index 886373a..9e2a830 100755 (executable)
@@ -19,7 +19,7 @@ if __name__ == '__main__':
        bus = dbus.SystemBus()
 
        bus.add_signal_receiver(property_changed,
-                                       bus_name="org.moblin.connman",
+                                       bus_name="net.connman",
                                        signal_name = "PropertyChanged",
                                                path_keyword="path",
                                                interface_keyword="interface")
index ebb53f7..05e1efd 100755 (executable)
@@ -30,8 +30,8 @@ if __name__ == '__main__':
        bus = dbus.SystemBus()
 
        bus.add_signal_receiver(property_changed,
-                               bus_name="org.moblin.connman",
-                               dbus_interface="org.moblin.connman.Manager",
+                               bus_name="net.connman",
+                               dbus_interface="net.connman.Manager",
                                        signal_name = "PropertyChanged")
 
        mainloop = gobject.MainLoop()
index 2f81c71..e4fe328 100755 (executable)
@@ -49,8 +49,8 @@ if __name__ == '__main__':
        bus = dbus.SystemBus()
 
        bus.add_signal_receiver(property_changed,
-                               bus_name="org.moblin.connman",
-                               dbus_interface="org.moblin.connman.Service",
+                               bus_name="net.connman",
+                               dbus_interface="net.connman.Service",
                                signal_name = "PropertyChanged",
                                path_keyword="path")
 
index 4933c60..9201678 100755 (executable)
@@ -9,14 +9,14 @@ if (len(sys.argv) < 3):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
 properties = manager.GetProperties()
 
 for path in properties["Services"]:
-       service = dbus.Interface(bus.get_object('org.moblin.connman', path),
-                                               'org.moblin.connman.Service')
+       service = dbus.Interface(bus.get_object('net.connman', path),
+                                               'net.connman.Service')
 
        properties = service.GetProperties()
 
index c45034c..3b5722c 100755 (executable)
@@ -9,8 +9,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 path = "/profile/default/" + sys.argv[1]
-service = dbus.Interface(bus.get_object('org.moblin.connman', path),
-                                       'org.moblin.connman.Service')
+service = dbus.Interface(bus.get_object('net.connman', path),
+                                       'net.connman.Service')
 
 properties = service.GetProperties()
 
index 9f202f7..576c803 100755 (executable)
@@ -13,8 +13,8 @@ if (len(sys.argv) < 3):
 
 bus = dbus.SystemBus()
 path = "/profile/default/" + sys.argv[1]
-service = dbus.Interface(bus.get_object('org.moblin.connman', path),
-                                       'org.moblin.connman.Service')
+service = dbus.Interface(bus.get_object('net.connman', path),
+                                       'net.connman.Service')
 
 properties = service.GetProperties()
 
index 9e513a5..98930bd 100755 (executable)
@@ -9,8 +9,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 path = "/profile/default/" + sys.argv[1]
-service = dbus.Interface(bus.get_object('org.moblin.connman', path),
-                                       'org.moblin.connman.Service')
+service = dbus.Interface(bus.get_object('net.connman', path),
+                                       'net.connman.Service')
 
 properties = service.GetProperties()
 
index 6b39cb4..e8043db 100755 (executable)
@@ -14,8 +14,8 @@ if (len(sys.argv) < 2):
 
 bus = dbus.SystemBus()
 path = "/profile/default/" + sys.argv[1]
-service = dbus.Interface(bus.get_object('org.moblin.connman', path),
-                                       'org.moblin.connman.Service')
+service = dbus.Interface(bus.get_object('net.connman', path),
+                                       'net.connman.Service')
 
 values = { "Method" : sys.argv[2] }
 
index e64dd27..20e8a50 100755 (executable)
@@ -4,18 +4,18 @@ import dbus
 
 bus = dbus.SystemBus()
 
-object = dbus.Interface(bus.get_object("org.moblin.connman", '/'),
+object = dbus.Interface(bus.get_object("net.connman", '/'),
                                "org.freedesktop.DBus.Introspectable")
 
 print object.Introspect()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 properties = manager.GetProperties()
 
 for path in properties["Technologies"]:
-       object = dbus.Interface(bus.get_object("org.moblin.connman", path),
+       object = dbus.Interface(bus.get_object("net.connman", path),
                                        "org.freedesktop.DBus.Introspectable")
 
        print object.Introspect()
index 7e1ce8b..54e857a 100755 (executable)
@@ -8,18 +8,18 @@ import dbus.mainloop.glib
 import sys
 
 class Canceled(dbus.DBusException):
-       _dbus_error_name = "org.moblin.connman.Error.Canceled"
+       _dbus_error_name = "net.connman.Error.Canceled"
 
 class Agent(dbus.service.Object):
        passphrase = ""
 
-       @dbus.service.method("org.moblin.connman.Agent",
+       @dbus.service.method("net.connman.Agent",
                                        in_signature='', out_signature='')
        def Release(self):
                print("Release")
                mainloop.quit()
 
-       @dbus.service.method("org.moblin.connman.Agent",
+       @dbus.service.method("net.connman.Agent",
                                        in_signature='oa{sv}',
                                        out_signature='a{sv}')
        def RequestInput(self, path, fields):
@@ -32,7 +32,7 @@ class Agent(dbus.service.Object):
 
                return response
 
-       @dbus.service.method("org.moblin.connman.Agent",
+       @dbus.service.method("net.connman.Agent",
                                        in_signature='', out_signature='')
        def Cancel(self):
                print "Cancel"
@@ -47,8 +47,8 @@ if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
        bus = dbus.SystemBus()
-       manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+       manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
        path = "/test/agent"
        object = Agent(bus, path)
index 4336e2d..c0a462d 100755 (executable)
@@ -5,8 +5,8 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 if len(sys.argv) < 2:
        print "Usage: %s <command>" % (sys.argv[0])
@@ -28,8 +28,8 @@ if len(sys.argv) < 2:
 
 def print_services(services):
        for path in services:
-               service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+               service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
                properties = service.GetProperties()
 
@@ -64,8 +64,8 @@ elif sys.argv[1] in ["apn"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        if (len(sys.argv) > 3):
                apn = sys.argv[3]
@@ -95,8 +95,8 @@ elif sys.argv[1] in ["passphrase", "pass"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        if (len(sys.argv) > 3):
                passphrase = sys.argv[3]
@@ -126,8 +126,8 @@ elif sys.argv[1] in ["autoconnect", "autoconn"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        if (len(sys.argv) > 3):
                flag = sys.argv[3].strip().lower()
@@ -158,8 +158,8 @@ elif sys.argv[1] in ["connect", "conn"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        try:
                service.Connect(timeout=60000)
@@ -173,8 +173,8 @@ elif sys.argv[1] in ["disconnect", "disc"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        try:
                service.Disconnect()
@@ -188,8 +188,8 @@ elif sys.argv[1] in ["remove"]:
 
        path = "/profile/default/" + sys.argv[2]
 
-       service = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Service")
+       service = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Service")
 
        properties = service.GetProperties()
 
index c05449a..ce83580 100755 (executable)
@@ -39,13 +39,13 @@ def print_stats(stats):
                print str
 
 class Counter(dbus.service.Object):
-       @dbus.service.method("org.moblin.connman.Counter",
+       @dbus.service.method("net.connman.Counter",
                                in_signature='', out_signature='')
        def Release(self):
                print("Release")
                mainloop.quit()
 
-       @dbus.service.method("org.moblin.connman.Counter",
+       @dbus.service.method("net.connman.Counter",
                                in_signature='oa{sv}a{sv}', out_signature='')
        def Usage(self, path, home, roaming):
                print "%s" % (path)
@@ -61,8 +61,8 @@ if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
        bus = dbus.SystemBus()
-       manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
-                                       'org.moblin.connman.Manager')
+       manager = dbus.Interface(bus.get_object('net.connman', "/"),
+                                       'net.connman.Manager')
 
        period = 2
        if len(sys.argv) > 1:
index 6c694a0..b5642d0 100755 (executable)
@@ -25,25 +25,25 @@ def extract_list(list):
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 properties = manager.GetProperties()
 
 def print_properties(key, value):
        if key == "Profiles":
-               interface = "org.moblin.connman.Profile"
+               interface = "net.connman.Profile"
        elif key == "Services":
-               interface = "org.moblin.connman.Service"
+               interface = "net.connman.Service"
        elif key == "Technologies":
-               interface = "org.moblin.connman.Technology"
+               interface = "net.connman.Technology"
        else:
                return
 
        print "%s" % (key)
        for path in value:
                print "    %s" % (path)
-               obj = dbus.Interface(bus.get_object("org.moblin.connman", path),
+               obj = dbus.Interface(bus.get_object("net.connman", path),
                                                                interface)
 
                properties = obj.GetProperties()
index 8f65955..f3af911 100755 (executable)
@@ -5,8 +5,8 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"),
-                                       "org.moblin.connman.Manager")
+manager = dbus.Interface(bus.get_object("net.connman", "/"),
+                                       "net.connman.Manager")
 
 if len(sys.argv) < 2:
        print "Usage: %s <command>" % (sys.argv[0])
@@ -20,8 +20,8 @@ if len(sys.argv) < 2:
 
 def print_profiles(profiles, active):
        for path in profiles:
-               profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Profile")
+               profile = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Profile")
 
                properties = profile.GetProperties()
 
@@ -51,8 +51,8 @@ elif sys.argv[1] in ["name"]:
 
        path = "/profile/" + sys.argv[2]
 
-       profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Profile")
+       profile = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Profile")
 
        if (len(sys.argv) > 3):
                name = sys.argv[3]
@@ -79,8 +79,8 @@ elif sys.argv[1] in ["create", "add"]:
 
        print "New profile created at %s" % (path)
 
-       profile = dbus.Interface(bus.get_object("org.moblin.connman", path),
-                                               "org.moblin.connman.Profile")
+       profile = dbus.Interface(bus.get_object("net.connman", path),
+                                               "net.connman.Profile")
 
        if (len(sys.argv) > 3):
                name = sys.argv[3]
index dc99f28..ca96919 100644 (file)
@@ -96,7 +96,7 @@ static void start_dhclient(DBusConnection *conn, const char *ifname)
        const char *busname;
 
        busname = dbus_bus_get_unique_name(conn);
-       busname = "org.moblin.connman";
+       busname = "net.connman";
 
        argv = g_ptr_array_new();
        add_argument(argv, DHCLIENT, NULL);
@@ -215,7 +215,7 @@ int main(int argc, char *argv[])
 
        dbus_error_init(&err);
 
-       conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, "org.moblin.connman", &err);
+       conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, "net.connman", &err);
        if (conn == NULL) {
                if (dbus_error_is_set(&err) == TRUE) {
                        fprintf(stderr, "%s\n", err.message);