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:
Thomas Haller 2016-05-19 13:23:40 +02:00
parent 2c34cd9ab5
commit 1b815346aa

View file

@ -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;
}