Top | ![]() |
![]() |
![]() |
![]() |
GFlags ╰── NMVpnEditorPluginCapability GInterface ├── NMVpnEditor ╰── NMVpnEditorPlugin
NMVpnEditor * nm_vpn_editor_plugin_get_editor (NMVpnEditorPlugin *plugin
,NMConnection *connection
,GError **error
);
NMVpnEditorPluginCapability
nm_vpn_editor_plugin_get_capabilities (NMVpnEditorPlugin *plugin
);
NMConnection * nm_vpn_editor_plugin_import (NMVpnEditorPlugin *plugin
,const char *path
,GError **error
);
gboolean nm_vpn_editor_plugin_export (NMVpnEditorPlugin *plugin
,const char *path
,NMConnection *connection
,GError **error
);
char * nm_vpn_editor_plugin_get_suggested_filename (NMVpnEditorPlugin *plugin
,NMConnection *connection
);
NMVpnEditorPlugin * nm_vpn_editor_plugin_load_from_file (const char *plugin_filename
,const char *check_service
,int check_owner
,NMUtilsCheckFilePredicate check_file
,gpointer user_data
,GError **error
);
Load the shared libary plugin_filename
and create a new
NMVpnEditorPlugin instace via the NMVpnEditorPluginFactory
function.
plugin_filename |
The path to the share library to load.
Apply some common heuristics to find the library, such as
appending "so" file ending.
If the path is not an absolute path or no matching module
can be found, lookup inside a directory defined at compile time.
Due to this, |
|
check_service |
if not-null, check that the loaded plugin advertises the given service. |
|
check_owner |
if non-negative, check whether the file is owned
by UID |
|
check_file |
optional callback to validate the file prior to loading the shared library. |
[scope call] |
user_data |
user data for |
|
error |
on failure the error reason. |
Since: 1.2
Flags that indicate certain capabilities of the plugin to editor programs.
typedef struct { GTypeInterface g_iface; NMVpnEditor * (*get_editor) (NMVpnEditorPlugin *plugin, NMConnection *connection, GError **error); NMVpnEditorPluginCapability (*get_capabilities) (NMVpnEditorPlugin *plugin); NMConnection * (*import_from_file) (NMVpnEditorPlugin *plugin, const char *path, GError **error); gboolean (*export_to_file) (NMVpnEditorPlugin *plugin, const char *path, NMConnection *connection, GError **error); char * (*get_suggested_filename) (NMVpnEditorPlugin *plugin, NMConnection *connection); } NMVpnEditorPluginInterface;
Interface for VPN editor plugins.
GTypeInterface |
the parent interface |
|
returns an NMVpnEditor, pre-filled with values from |
||
returns a bitmask of capabilities. |
||
Try to import a connection from the specified path. On
success, return a partial NMConnection object. On error, return |
||
Export the given connection to the specified path. Return
|
||
For a given connection, return a suggested file
name. Returned value will be |
“description”
property“description” gchar *
Longer description of the VPN plugin.
Flags: Read
Default value: NULL
“name”
property“name” gchar *
Short display name of the VPN plugin.
Flags: Read
Default value: NULL
“service”
property“service” gchar *
D-Bus service name of the plugin's VPN service.
Flags: Read
Default value: NULL
“changed”
signalvoid user_function (NMVpnEditor *nmvpneditor, gpointer user_data)
Flags: Run First