Function

NM-1.0NMvpn_editor_plugin_loadSince 1.4

  • Load the shared library plugin_name and create a new NM.VpnEditorPlugin instance via the NMVpnEditorPluginFactory function.

    This is similar to nm_vpn_editor_plugin_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, nm_vpn_editor_plugin_load_from_file() is preferred.

    Parameters

    • plugin_name: string

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

    • check_service: string

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

    Returns NM.VpnEditorPlugin

    a new plugin instance or null on error.

    1.4