File: nm-vpn-plugin-utils.h

package info (click to toggle)
network-manager-l2tp 1.52.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,300 kB
  • sloc: ansic: 11,183; sh: 5,552; makefile: 287; sed: 39; xml: 24
file content (27 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright 2016,2024 Red Hat, Inc.
 */

#ifndef __NM_VPN_PLUGIN_UTILS_H__
#define __NM_VPN_PLUGIN_UTILS_H__

#include <NetworkManager.h>

typedef NMVpnEditor *(NMVpnPluginUtilsEditorFactory) (gpointer           factory,
                                                      NMVpnEditorPlugin *editor_plugin,
                                                      NMConnection *     connection,
                                                      gpointer           user_data,
                                                      GError **          error);

char *nm_vpn_plugin_utils_get_editor_module_path(const char *module_name, GError **error);

NMVpnEditor *nm_vpn_plugin_utils_load_editor(const char *                  module_path,
                                             const char *                  factory_name,
                                             NMVpnPluginUtilsEditorFactory editor_factory,
                                             NMVpnEditorPlugin *           editor_plugin,
                                             NMConnection *                connection,
                                             gpointer                      user_data,
                                             GError **                     error);

#endif /* __NM_VPN_PLUGIN_UTILS_H__ */