summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-02-27 17:45:10 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-02-27 18:21:28 +0100
commit3dd43ae20d1a0563cab5d274f6751fbfff3bbeeb (patch)
treeb64ffb95968ce45b11eee784d1661826790946b2
parentb78295f210ecbd579d9b9c80e728aa3f72c2bbf4 (diff)
downloadmullvadvpn-3dd43ae20d1a0563cab5d274f6751fbfff3bbeeb.tar.xz
mullvadvpn-3dd43ae20d1a0563cab5d274f6751fbfff3bbeeb.zip
Define INTERESTING_EVENTS
-rw-r--r--talpid_openvpn_plugin/src/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/talpid_openvpn_plugin/src/lib.rs b/talpid_openvpn_plugin/src/lib.rs
index d2d1ea9d74..6308a7b373 100644
--- a/talpid_openvpn_plugin/src/lib.rs
+++ b/talpid_openvpn_plugin/src/lib.rs
@@ -13,3 +13,11 @@ mod ffi;
/// Publicly export the functions making up the public interface of the plugin. These are the C FFI
/// functions called by OpenVPN.
pub use ffi::{openvpn_plugin_open_v3, openvpn_plugin_close_v1, openvpn_plugin_func_v3};
+
+use ffi::consts::OpenVpnPluginEvent;
+
+
+/// All the OpenVPN events this plugin will register for listening to. Edit this variable to change
+/// events.
+pub static INTERESTING_EVENTS: &'static [OpenVpnPluginEvent] = &[OpenVpnPluginEvent::Up,
+ OpenVpnPluginEvent::RoutePredown];