#include <dbus/dbus.h>
-#define CONNMAN_SERVICE "org.freedesktop.connman"
+#define CONNMAN_SERVICE "org.moblin.connman"
#define CONNMAN_ERROR_INTERFACE CONNMAN_SERVICE ".Error"
"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>
[D-BUS Service]
-Name=org.freedesktop.connman
+Name=org.moblin.connman
Exec=@prefix@/sbin/connmand
User=root
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()
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():
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())
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)
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()
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")
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)
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()