|
@ -68,6 +68,25 @@ class DeviceManagerDBusProxy : Object |
|
|
this.manager.allow_device(dev_proxy.device); |
|
|
this.manager.allow_device(dev_proxy.device); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* disallow_device: |
|
|
|
|
|
* @path: device object path |
|
|
|
|
|
* |
|
|
|
|
|
* Disallow given device |
|
|
|
|
|
*/ |
|
|
|
|
|
public void disallow_device(string path) { |
|
|
|
|
|
debug("disallow device %s", path); |
|
|
|
|
|
|
|
|
|
|
|
var dev_proxy = this.devices.@get(path); |
|
|
|
|
|
|
|
|
|
|
|
if (dev_proxy == null) { |
|
|
|
|
|
warning("no device under path %s", path); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.manager.disallow_device(dev_proxy.device); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* list_devices: |
|
|
* list_devices: |
|
|
* |
|
|
* |
|
@ -143,4 +162,4 @@ class DeviceManagerDBusProxy : Object |
|
|
|
|
|
|
|
|
return path; |
|
|
return path; |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |