mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 13:28:02 +02:00
clients: fix build error for missing nm_vpn_plugin_info_get_service() after bad backport
nm_vpn_plugin_info_get_service() is new API on master, not available here.
Reimplement it.
Fixes: 7c209b2a7d
This commit is contained in:
parent
2c34cd9ab5
commit
1b815346aa
1 changed files with 3 additions and 1 deletions
|
|
@ -157,7 +157,9 @@ nm_vpn_get_service_for_name (const char *name)
|
|||
if (plugin_info) {
|
||||
/* this only means we have a .name file (NMVpnPluginInfo). Possibly the
|
||||
* NMVpnEditorPlugin is not loadable. */
|
||||
return nm_vpn_plugin_info_get_service (plugin_info);
|
||||
return nm_vpn_plugin_info_lookup_property (plugin_info,
|
||||
NM_VPN_PLUGIN_INFO_KF_GROUP_CONNECTION,
|
||||
"service");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue