Use org.moblin instead of org.freedesktop
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Jun 2008 08:27:13 +0000 (10:27 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Jun 2008 08:27:13 +0000 (10:27 +0200)
include/dbus.h
src/connman.conf
src/connman.service.in
test/get-state
test/list-interfaces
test/select-network
test/show-introspection
test/simple-agent
test/start-scanning

index 21efdf5..a237e38 100644 (file)
@@ -28,7 +28,7 @@ extern "C" {
 
 #include <dbus/dbus.h>
 
-#define CONNMAN_SERVICE  "org.freedesktop.connman"
+#define CONNMAN_SERVICE  "org.moblin.connman"
 
 #define CONNMAN_ERROR_INTERFACE  CONNMAN_SERVICE ".Error"
 
index 4e3567e..f9da151 100644 (file)
@@ -2,12 +2,12 @@
  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
 <busconfig>
     <policy user="root">
-        <allow own="org.freedesktop.connman"/>
-        <allow send_destination="org.freedesktop.connman"/>
+        <allow own="org.moblin.connman"/>
+        <allow send_destination="org.moblin.connman"/>
         <allow send_interface="org.isc.dhclient"/>
     </policy>
     <policy at_console="true">
-        <allow send_destination="org.freedesktop.connman"/>
-        <allow send_interface="org.freedesktop.connman"/>
+        <allow send_destination="org.moblin.connman"/>
+        <allow send_interface="org.moblin.connman"/>
     </policy>
 </busconfig>
index 8c2368a..e514c77 100644 (file)
@@ -1,4 +1,4 @@
 [D-BUS Service]
-Name=org.freedesktop.connman
+Name=org.moblin.connman
 Exec=@prefix@/sbin/connmand
 User=root
index e5b130c..f82b44c 100755 (executable)
@@ -4,8 +4,8 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
 state = manager.GetState()
 
index 5a1d28f..3a54a26 100755 (executable)
@@ -4,16 +4,16 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
 interfaces = manager.ListInterfaces()
 
 for path in interfaces:
        print "[ %s ]" % (path)
 
-       interface = dbus.Interface(bus.get_object('org.freedesktop.connman', path),
-                                       'org.freedesktop.connman.Interface')
+       interface = dbus.Interface(bus.get_object('org.moblin.connman', path),
+                                       'org.moblin.connman.Interface')
 
        properties = interface.GetProperties()
        for key in properties.keys():
@@ -27,8 +27,8 @@ for path in interfaces:
        for i in networks:
                print "    Network.Path = %s" % (i)
 
-               network = dbus.Interface(bus.get_object('org.freedesktop.connman', i),
-                                               'org.freedesktop.connman.Network')
+               network = dbus.Interface(bus.get_object('org.moblin.connman', i),
+                                               'org.moblin.connman.Network')
 
                print "    Network.Identifier = %s" % (network.GetIdentifier())
                print "    Network.Passphrase = %s" % (network.GetPassphrase())
index e009d75..7de8d65 100755 (executable)
@@ -4,24 +4,24 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
 interfaces = manager.ListInterfaces()
 
 for path in interfaces:
        print "[ %s ]" % (path)
 
-       interface = dbus.Interface(bus.get_object('org.freedesktop.connman', path),
-                                       'org.freedesktop.connman.Interface')
+       interface = dbus.Interface(bus.get_object('org.moblin.connman', path),
+                                       'org.moblin.connman.Interface')
 
        properties = interface.GetProperties()
 
        if (properties["Type"] == "80211"):
                networks = interface.ListNetworks()
                for i in networks:
-                       network = dbus.Interface(bus.get_object('org.freedesktop.connman', i),
-                                               'org.freedesktop.connman.Network')
+                       network = dbus.Interface(bus.get_object('org.moblin.connman', i),
+                                               'org.moblin.connman.Network')
 
                        if (network.GetIdentifier() == "ConnMan Testing"):
                                print "   Selecting network %s" % (i)
index 9acdd11..c1cb0ef 100755 (executable)
@@ -4,18 +4,18 @@ import dbus
 
 bus = dbus.SystemBus()
 
-object = dbus.Interface(bus.get_object('org.freedesktop.connman', '/'),
+object = dbus.Interface(bus.get_object('org.moblin.connman', '/'),
                                'org.freedesktop.DBus.Introspectable')
 
 print object.Introspect()
 
-manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
 interfaces = manager.ListInterfaces()
 
 for path in interfaces:
-       object = dbus.Interface(bus.get_object('org.freedesktop.connman', path),
+       object = dbus.Interface(bus.get_object('org.moblin.connman', path),
                                        'org.freedesktop.DBus.Introspectable')
 
        print object.Introspect()
index 47a61f6..cb3a675 100755 (executable)
@@ -7,7 +7,7 @@ import dbus.service
 import dbus.mainloop.glib
 
 class Agent(dbus.service.Object):
-       @dbus.service.method("org.freedesktop.connman.Agent",
+       @dbus.service.method("org.moblin.connman.Agent",
                                        in_signature='', out_signature='')
        def Release(self):
                print("Release")
@@ -17,8 +17,8 @@ if __name__ == '__main__':
        dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
 
        bus = dbus.SystemBus()
-       manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+       manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
        path = "/test/agent"
        object = Agent(bus, path)
index 712b3e9..b593323 100755 (executable)
@@ -4,16 +4,16 @@ import dbus
 
 bus = dbus.SystemBus()
 
-manager = dbus.Interface(bus.get_object('org.freedesktop.connman', "/"),
-                                       'org.freedesktop.connman.Manager')
+manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
+                                       'org.moblin.connman.Manager')
 
 interfaces = manager.ListInterfaces()
 
 for path in interfaces:
        print "[ %s ]" % (path)
 
-       interface = dbus.Interface(bus.get_object('org.freedesktop.connman', path),
-                                       'org.freedesktop.connman.Interface')
+       interface = dbus.Interface(bus.get_object('org.moblin.connman', path),
+                                       'org.moblin.connman.Interface')
 
        properties = interface.GetProperties()