Top | ![]() |
![]() |
![]() |
![]() |
GQuark | nm_vpn_plugin_error_quark () |
DBusGConnection * | nm_vpn_plugin_get_connection () |
NMVPNServiceState | nm_vpn_plugin_get_state () |
void | nm_vpn_plugin_set_state () |
void | nm_vpn_plugin_secrets_required () |
void | nm_vpn_plugin_set_login_banner () |
void | nm_vpn_plugin_failure () |
void | nm_vpn_plugin_set_config () |
void | nm_vpn_plugin_set_ip4_config () |
void | nm_vpn_plugin_set_ip6_config () |
gboolean | nm_vpn_plugin_disconnect () |
void | config | Run First |
void | failure | Run First |
void | ip4-config | Run First |
void | ip6-config | Run First |
void | login-banner | Run First |
void | quit | Run First |
void | secrets-required | Run First |
void | state-changed | Run First |
#define | NM_VPN_PLUGIN_DBUS_SERVICE_NAME |
#define | NM_VPN_PLUGIN_STATE |
enum | NMVPNPluginError |
DBusGConnection *
nm_vpn_plugin_get_connection (NMVPNPlugin *plugin
);
void nm_vpn_plugin_set_state (NMVPNPlugin *plugin
,NMVPNServiceState state
);
void nm_vpn_plugin_secrets_required (NMVPNPlugin *plugin
,const char *message
,const char **hints
);
Called by VPN plugin implementations to signal to NetworkManager that secrets are required during the connection process. This signal may be used to request new secrets when the secrets originally provided by NetworkManager are insufficient, or the VPN process indicates that it needs additional information to complete the request.
plugin |
the NMVPNPlugin |
|
message |
an information message about why secrets are required, if any |
|
hints |
VPN specific secret names for required new secrets |
Since: 0.9.10
void nm_vpn_plugin_set_login_banner (NMVPNPlugin *plugin
,const char *banner
);
void nm_vpn_plugin_failure (NMVPNPlugin *plugin
,NMVPNPluginFailure reason
);
void nm_vpn_plugin_set_config (NMVPNPlugin *plugin
,GHashTable *config
);
void nm_vpn_plugin_set_ip4_config (NMVPNPlugin *plugin
,GHashTable *ip4_config
);
void nm_vpn_plugin_set_ip6_config (NMVPNPlugin *plugin
,GHashTable *ip6_config
);
Returned by the VPN service plugin to indicate errors.
general failure |
||
the plugin is already starting, and another connect request was received |
||
the plugin is already connected, and another connect request was received |
||
the plugin is already stopping, and another stop request was received |
||
the plugin is already stopped, and another disconnect request was received |
||
the operation could not be performed in this state |
||
the operation could not be performed as the request contained malformed arguments, or arguments of unexpected type. Usually means that one of the VPN setting data items or secrets was not of the expected type (ie int, string, bool, etc). |
||
a child process failed to launch |
||
the operation could not be performed because the connection was invalid. Usually means that the connection's VPN setting was missing some required data item or secret. |
||
the operation could not be
performed as the plugin does not support interactive operations, such as
|
“service-name”
property“service-name” gchar *
The D-Bus service name of this plugin.
Flags: Read / Write / Construct Only
Default value: NULL
“state”
property“state” guint
The state of the plugin.
Flags: Read / Write
Allowed values: <= 6
Default value: 1
“config”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gpointer user_data)
Flags: Run First
“failure”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, guint arg1, gpointer user_data)
Flags: Run First
“ip4-config”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gpointer user_data)
Flags: Run First
“ip6-config”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gpointer user_data)
Flags: Run First
“login-banner”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gchar *arg1, gpointer user_data)
Flags: Run First
“quit”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gpointer user_data)
Flags: Run First
“secrets-required”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, gchar *arg1, GStrv arg2, gpointer user_data)
Flags: Run First
“state-changed”
signalvoid user_function (NMVPNPlugin *nmvpnplugin, guint arg1, gpointer user_data)
Flags: Run First