diff options
Diffstat (limited to 'libdino/src/dbus')
-rw-r--r-- | libdino/src/dbus/network_manager.vala (renamed from libdino/src/dbus/networkmanager.vala) | 0 | ||||
-rw-r--r-- | libdino/src/dbus/network_manager_dbus_properties.vala | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/libdino/src/dbus/networkmanager.vala b/libdino/src/dbus/network_manager.vala index be9fb42b..be9fb42b 100644 --- a/libdino/src/dbus/networkmanager.vala +++ b/libdino/src/dbus/network_manager.vala diff --git a/libdino/src/dbus/network_manager_dbus_properties.vala b/libdino/src/dbus/network_manager_dbus_properties.vala new file mode 100644 index 00000000..37cf76cb --- /dev/null +++ b/libdino/src/dbus/network_manager_dbus_properties.vala @@ -0,0 +1,14 @@ +[DBus (name = "org.freedesktop.DBus.Properties")] +public interface NetworkManagerDBusProperties : GLib.Object { + public signal void properties_changed(string iface, HashTable<string, Variant> changed, string[] invalidated); +} + +public static NetworkManagerDBusProperties? get_dbus_properties() { + NetworkManagerDBusProperties? dbus_properties = null; + try { + dbus_properties = Bus.get_proxy_sync(BusType.SYSTEM, "org.freedesktop.DBus.Properties", "/org/freedesktop/NetworkManager"); + } catch (IOError e) { + stderr.printf("%s\n", e.message); + } + return dbus_properties; +} |