load


Description:

[ 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.

Parameters:

plugin_name

The name of the shared library to load. This path will be directly passed to dlopen without further checks.

check_service

if not-null, check that the loaded plugin advertises the given service.

Returns:

a new plugin instance or null on error.