From b16e1491d572abaca92aa85e18c1a9c475139737 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Thu, 1 Jun 2017 09:11:27 +0200 Subject: [PATCH] devicemanager: allow_device, list_devices DBus methods --- src/mconnect/devicemanager.vala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/mconnect/devicemanager.vala b/src/mconnect/devicemanager.vala index 78a788a..77f990d 100644 --- a/src/mconnect/devicemanager.vala +++ b/src/mconnect/devicemanager.vala @@ -178,4 +178,24 @@ class DeviceManager : GLib.Object debug("device %s got disconnected", dev.to_string()); } + /** + * allow_device: + * @path: device object path + * + * Allow given device + */ + public void allow_device(string path) { + + } + + /** + * list_devices: + * + * Returns a list of DBus paths of all known devices + */ + public ObjectPath[] list_devices() { + ObjectPath[] devices = {}; + return devices; + } + } \ No newline at end of file