The path or name of the shared library to load. The path must either be an absolute filename to an existing file. Alternatively, it can be the name (without path) of a library in the plugin directory of NetworkManager.
if not-null, check that the loaded plugin advertises the given service.
if non-negative, check whether the file is owned by UID check_owner or by root. In this case also check that the file is not writable by anybody else.
optional callback to validate the file prior to loading the shared library.
a new plugin instance or null on error.
Load the shared library
plugin_nameand create a new NM.VpnEditorPlugin instance via theNMVpnEditorPluginFactoryfunction.If
plugin_nameis not an absolute path name, it assumes the file is in the plugin directory of NetworkManager. In any case, the call will do certain checks on the file before passing it to dlopen. A consequence for that is, that you cannot omit the ".so" suffix as you could fornm_vpn_editor_plugin_load().