[ Version ( since = "1.4" ) ]
public static VpnEditorPlugin load (string plugin_name, string check_service) throws Error
Load the shared library plugin_name
and create a new VpnEditorPlugin
instance via the NMVpnEditorPluginFactory
function.
This is similar to load_from_file, but it does no validation
of the plugin name, instead passes it directly to dlopen
. If you have the full path to a plugin file,
load_from_file is preferred.
plugin_name |
The name of the shared library to load. This path will be directly passed to |
check_service |
if not-null, check that the loaded plugin advertises the given service. |
a new plugin instance or null on error. |