diff options
author | Tambet Ingo <tambet@gmail.com> | 2008-09-22 15:29:00 +0000 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2008-09-22 15:29:00 +0000 |
commit | b37fc863854a1be34869a939a9072b4be602fa92 (patch) | |
tree | 448c0adffc9178cb940df9cf18c3d56e4c1a0b26 /introspection | |
parent | 75e283e36875362b1f37c6235d9adc24c3f7d30d (diff) |
2008-09-22 Tambet Ingo <tambet@gmail.com>
* src/vpn-manager/nm-vpn-connection.c: Add a signal handler for the
"Failure" signal from VPN plugins, store the failure reason, and
use it when the state is changed to failure.
* introspection/nm-vpn-plugin.xml: Fix the "Failure" signal's type
description.
* include/NetworkManagerVPN.h (NMVPNConnectionStateReason): Add a new
reason to the end of the list to not break the API.
(NMVPNPluginFailure): Move it here (from libnm-glib/nm-vpn-plugin.h)
so it can be shared by plugins and daemon.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4088 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/nm-vpn-plugin.xml | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/introspection/nm-vpn-plugin.xml b/introspection/nm-vpn-plugin.xml index e7647e1d6d..72861f2666 100644 --- a/introspection/nm-vpn-plugin.xml +++ b/introspection/nm-vpn-plugin.xml @@ -122,11 +122,30 @@ <tp:docstring> Emitted when a failure in the VPN plugin occurs. </tp:docstring> - <arg name="reason" type="u" tp:type="NM_VPN_CONNECTION_STATE_REASON"> + <arg name="reason" type="u" tp:type="NM_VPN_PLUGIN_FAILURE"> <tp:docstring> Reason code for the failure. </tp:docstring> </arg> </signal> + + <tp:enum name="NM_VPN_PLUGIN_FAILURE" type="u"> + <tp:enumvalue suffix="LOGIN_FAILED" value="0"> + <tp:docstring> + Login failed. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="CONNECT_FAILED" value="1"> + <tp:docstring> + Connect failed. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="BAD_IP_CONFIG" value="2"> + <tp:docstring> + Invalid IP configuration returned from the VPN plugin. + </tp:docstring> + </tp:enumvalue> + </tp:enum> + </interface> </node> |