From 28c8345ecae8c68b7b52167dfcbb4ac7f2a070b4 Mon Sep 17 00:00:00 2001 From: Andy Holmes Date: Tue, 22 Aug 2017 23:17:48 -0700 Subject: [PATCH] add device_added, device_removed signals --- src/mconnect/devicemanager-proxy.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mconnect/devicemanager-proxy.vala b/src/mconnect/devicemanager-proxy.vala index 22de62c..eb44782 100644 --- a/src/mconnect/devicemanager-proxy.vala +++ b/src/mconnect/devicemanager-proxy.vala @@ -24,6 +24,10 @@ class DeviceManagerDBusProxy : Object { private DeviceManager manager; + public signal void device_added(string path); + + public signal void device_removed(string path); + private const string DBUS_PATH = "/org/mconnect/manager"; private DBusConnection bus = null; private HashMap devices; @@ -111,6 +115,7 @@ class DeviceManagerDBusProxy : Object info("register device %s under path %s", dev.to_string(), path); device_proxy.bus_register(this.bus); + device_added(path); } private DeviceDBusProxy? find_proxy_for_device(Device dev) {