mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 10:30:39 +01:00
libnm-core/vpn-plugin-info: add nm_vpn_plugin_info_supports_multiple()
This commit is contained in:
parent
fd61b21706
commit
6c213e3cb4
2 changed files with 22 additions and 0 deletions
|
|
@ -619,6 +619,26 @@ nm_vpn_plugin_info_get_program (NMVpnPluginInfo *self)
|
|||
_nm_utils_strstrdictkey_static (NM_VPN_PLUGIN_INFO_KF_GROUP_CONNECTION, "program"));
|
||||
}
|
||||
|
||||
/**
|
||||
* nm_vpn_plugin_info_supports_multiple:
|
||||
* @self: plugin info instance
|
||||
*
|
||||
* Returns: %TRUE if the service supports multiple instances with different bus names, otherwise %FALSE
|
||||
*
|
||||
* Since: 1.2
|
||||
*/
|
||||
gboolean
|
||||
nm_vpn_plugin_info_supports_multiple (NMVpnPluginInfo *self)
|
||||
{
|
||||
g_return_val_if_fail (NM_IS_VPN_PLUGIN_INFO (self), FALSE);
|
||||
|
||||
return g_key_file_get_boolean (NM_VPN_PLUGIN_INFO_GET_PRIVATE (self)->keyfile,
|
||||
NM_VPN_PLUGIN_INFO_KF_GROUP_CONNECTION,
|
||||
"supports-multiple-connections",
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* nm_vpn_plugin_info_lookup_property:
|
||||
* @self: plugin info instance
|
||||
|
|
|
|||
|
|
@ -81,6 +81,8 @@ const char *nm_vpn_plugin_info_get_plugin (NMVpnPluginInfo *self);
|
|||
NM_AVAILABLE_IN_1_2
|
||||
const char *nm_vpn_plugin_info_get_program (NMVpnPluginInfo *self);
|
||||
NM_AVAILABLE_IN_1_2
|
||||
gboolean nm_vpn_plugin_info_supports_multiple (NMVpnPluginInfo *self);
|
||||
NM_AVAILABLE_IN_1_2
|
||||
const char *nm_vpn_plugin_info_lookup_property (NMVpnPluginInfo *self, const char *group, const char *key);
|
||||
|
||||
NM_AVAILABLE_IN_1_2
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue