mirror of
https://github.com/gryf/wicd.git
synced 2026-02-26 12:15:54 +01:00
Specify DBus signature (useful when list is empty)
This commit is contained in:
@@ -1358,7 +1358,7 @@ class WirelessDaemon(dbus.service.Object, object):
|
|||||||
""" Reloads the active config file. """
|
""" Reloads the active config file. """
|
||||||
self.config.reload()
|
self.config.reload()
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon.wireless')
|
@dbus.service.method('org.wicd.daemon.wireless', out_signature='as')
|
||||||
def GetWirelessInterfaces(self):
|
def GetWirelessInterfaces(self):
|
||||||
''' Returns a list of wireless interfaces on the system. '''
|
''' Returns a list of wireless interfaces on the system. '''
|
||||||
return wnettools.GetWirelessInterfaces()
|
return wnettools.GetWirelessInterfaces()
|
||||||
@@ -1694,7 +1694,7 @@ class WiredDaemon(dbus.service.Object, object):
|
|||||||
""" Reloads the active config file. """
|
""" Reloads the active config file. """
|
||||||
self.config.reload()
|
self.config.reload()
|
||||||
|
|
||||||
@dbus.service.method('org.wicd.daemon.wired')
|
@dbus.service.method('org.wicd.daemon.wired', out_signature='as')
|
||||||
def GetWiredInterfaces(self):
|
def GetWiredInterfaces(self):
|
||||||
''' Returns a list of wireless interfaces on the system. '''
|
''' Returns a list of wireless interfaces on the system. '''
|
||||||
return wnettools.GetWiredInterfaces()
|
return wnettools.GetWiredInterfaces()
|
||||||
|
|||||||
Reference in New Issue
Block a user