Add NetworkManager.DeactivateConnection
This commit is contained in:
parent
bfdf42806c
commit
84f8864a22
1 changed files with 7 additions and 0 deletions
|
@ -90,6 +90,9 @@ type NetworkManager interface {
|
|||
// connection["802-11-wireless-security"]["psk"] = password
|
||||
AddAndActivateWirelessConnection(connection map[string]map[string]interface{}, device Device, accessPoint AccessPoint) (ac ActiveConnection, err error)
|
||||
|
||||
// Deactivate an active connection.
|
||||
DeactivateConnection(connection Connection) error
|
||||
|
||||
Subscribe() <-chan *dbus.Signal
|
||||
Unsubscribe()
|
||||
|
||||
|
@ -194,6 +197,10 @@ func (n *networkManager) AddAndActivateWirelessConnection(connection map[string]
|
|||
return
|
||||
}
|
||||
|
||||
func (n *networkManager) DeactivateConnection(c Connection) error {
|
||||
return n.call(NetworkManagerDeactivateConnection, c.GetPath())
|
||||
}
|
||||
|
||||
func (n *networkManager) Subscribe() <-chan *dbus.Signal {
|
||||
if n.sigChan != nil {
|
||||
return n.sigChan
|
||||
|
|
Reference in a new issue