aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/dbus
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-08-24 23:24:04 +0200
committerfiaxh <git@mx.ax.lt>2017-08-25 22:30:03 +0200
commitf9436b63f1f7de08f8c2c97878c183495bb3c6f6 (patch)
tree83be5e16c0ea2b6064035665f1c6f3406ebdb61a /libdino/src/dbus
parenta8ba4a397419b3b6d3d167b21a8da72dcdbe1961 (diff)
downloaddino-f9436b63f1f7de08f8c2c97878c183495bb3c6f6.tar.gz
dino-f9436b63f1f7de08f8c2c97878c183495bb3c6f6.zip
connection: keep-alive pings, act upon connection change (VPN)
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.vala14
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;
+}