diff options
| author | Linus Färnstrand <linus@mullvad.net> | 2017-03-06 19:58:46 +0100 |
|---|---|---|
| committer | Linus Färnstrand <linus@mullvad.net> | 2017-03-07 08:46:23 +0100 |
| commit | 370e68a447c788c026ab573db7eb932735ff2554 (patch) | |
| tree | 8c99ee6a233d8ee12f803563c6a03c44bfb3b592 /src/process | |
| parent | 14fc5c2740687465e41960dc73e201ba71068840 (diff) | |
| download | mullvadvpn-370e68a447c788c026ab573db7eb932735ff2554.tar.xz mullvadvpn-370e68a447c788c026ab573db7eb932735ff2554.zip | |
Add event to what is sent from plugin
Diffstat (limited to 'src/process')
| -rw-r--r-- | src/process/openvpn.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/process/openvpn.rs b/src/process/openvpn.rs index 2d25deb965..b533b32b67 100644 --- a/src/process/openvpn.rs +++ b/src/process/openvpn.rs @@ -1,3 +1,5 @@ +extern crate openvpn_ffi; + use super::monitor::{ChildSpawner, ChildMonitor}; use clonablechild::{ClonableChild, ChildExt}; @@ -160,7 +162,7 @@ impl ChildSpawner for OpenVpnCommand { /// Possible events from OpenVPN pub enum OpenVpnEvent { /// An event from the plugin loaded into OpenVPN. - PluginEvent(Result<HashMap<String, String>>), + PluginEvent(Result<(openvpn_ffi::OpenVpnPluginEvent, HashMap<String, String>)>), /// The OpenVPN process exited. The bool indicates if the process exited cleanly. Shutdown(bool), } |
