Skip to content
  • Thomas Haller's avatar
    libnm/vpn: pass NMVpnPluginInfo to the NMVpnEditorPlugin instance · 1c42375e
    Thomas Haller authored
    The NMVpnPluginInfo is essentially the .name file, that is, a
    configuration file about the plugin itself. Via NMVpnPluginInfo
    instance, the NMVpnEditorPlugin can be created.
    
    Usually, one would create a NMVpnPluginInfo (that is, reading the
    .name file) and then create a NMVpnEditorPlugin instance from there.
    In this case, usually the editor-plugin is owned by the plugin-info
    instance (although the API allows for creating the editor-plugin
    independently).
    
    Now, pass the  NMVpnPluginInfo to the editor-plugin too.
    This is useful, because then the editor-plugin can look at the .name
    file.
    
    The .name file is not user configuration. Instead it is configuration
    about the plugin itself. Although the .name file is part of the plugin
    build artefacts, it is useful to allow the plugin to access the .name
    file. The reason is, that this can allow the user to easily change a
    configuration knob of the plugin without requiring to patch or the
    plugin.
    1c42375e