diff options
author | fiaxh <git@mx.ax.lt> | 2017-08-24 23:24:04 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-08-25 22:30:03 +0200 |
commit | f9436b63f1f7de08f8c2c97878c183495bb3c6f6 (patch) | |
tree | 83be5e16c0ea2b6064035665f1c6f3406ebdb61a /libdino/src/dbus/networkmanager.vala | |
parent | a8ba4a397419b3b6d3d167b21a8da72dcdbe1961 (diff) | |
download | dino-f9436b63f1f7de08f8c2c97878c183495bb3c6f6.tar.gz dino-f9436b63f1f7de08f8c2c97878c183495bb3c6f6.zip |
connection: keep-alive pings, act upon connection change (VPN)
Diffstat (limited to 'libdino/src/dbus/networkmanager.vala')
-rw-r--r-- | libdino/src/dbus/networkmanager.vala | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libdino/src/dbus/networkmanager.vala b/libdino/src/dbus/networkmanager.vala deleted file mode 100644 index be9fb42b..00000000 --- a/libdino/src/dbus/networkmanager.vala +++ /dev/null @@ -1,22 +0,0 @@ -namespace Dino { - -[DBus (name = "org.freedesktop.NetworkManager")] -public interface NetworkManager : Object { - - public const int CONNECTED_GLOBAL = 70; - - public abstract uint32 State {owned get;} - public signal void StateChanged(uint32 state); -} - -public static NetworkManager? get_network_manager() { - NetworkManager? nm = null; - try { - nm = Bus.get_proxy_sync(BusType.SYSTEM, "org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager"); - } catch (IOError e) { - stderr.printf ("%s\n", e.message); - } - return nm; -} - -} |