Remmina - The GTK+ Remote Desktop Client  v1.4.33
Remmina is a remote desktop client written in GTK+, aiming to be useful for system administrators and travellers, who need to work with lots of remote computers in front of either large monitors or tiny netbooks. Remmina supports multiple network protocols in an integrated and consistent user interface. Currently RDP, VNC, NX, XDMCP and SSH are supported.
python_wrapper_plugin.c File Reference

Go to the source code of this file.

Functions

static int basename_no_ext (const char *in, char **out)
 Extracts the filename without extension from a path. More...
 
gboolean python_wrapper_init (RemminaLanguageWrapperPlugin *plugin)
 Initializes the Python plugin loaders. More...
 
gboolean python_wrapper_load (RemminaLanguageWrapperPlugin *plugin, const char *name)
 
G_MODULE_EXPORT gboolean remmina_plugin_entry (RemminaPluginService *service)
 

Variables

static const char * python_init_commands []
 An null terminated array of commands that are executed after the initialization of the Python engine. More...
 
static const gchar * python_wrapper_supported_extensions [] = {"py", NULL}
 
static RemminaLanguageWrapperPlugin remmina_python_wrapper
 

Function Documentation

◆ basename_no_ext()

static int basename_no_ext ( const char *  in,
char **  out 
)
static

Extracts the filename without extension from a path.

Parameters
inThe string to extract the filename from
outThe resulting filename without extension (must point to allocated memory).
Returns
The length of the filename extracted.

Definition at line 91 of file python_wrapper_plugin.c.

◆ python_wrapper_init()

gboolean python_wrapper_init ( RemminaLanguageWrapperPlugin plugin)

Initializes the Python plugin loaders.

This does not load any plugins but initializes the implementation (e.g. globals and the Python engine).

Definition at line 129 of file python_wrapper_plugin.c.

◆ python_wrapper_load()

gboolean python_wrapper_load ( RemminaLanguageWrapperPlugin plugin,
const char *  name 
)

Definition at line 136 of file python_wrapper_plugin.c.

◆ remmina_plugin_entry()

G_MODULE_EXPORT gboolean remmina_plugin_entry ( RemminaPluginService service)

Definition at line 195 of file python_wrapper_plugin.c.

Variable Documentation

◆ python_init_commands

const char* python_init_commands[]
static
Initial value:
= { "import sys", "sys.path.append('" REMMINA_RUNTIME_PLUGINDIR "')", NULL
}

An null terminated array of commands that are executed after the initialization of the Python engine.

Every entry represents a line of Python code.

Definition at line 61 of file python_wrapper_plugin.c.

◆ python_wrapper_supported_extensions

const gchar* python_wrapper_supported_extensions[] = {"py", NULL}
static

Definition at line 65 of file python_wrapper_plugin.c.

◆ remmina_python_wrapper

RemminaLanguageWrapperPlugin remmina_python_wrapper
static
Initial value:
=
{
"Python Wrapper",
"Enables Python plugins for Remmina",
GETTEXT_PACKAGE,
"Python Wrapper for Remmina v0.1",
}
gboolean python_wrapper_init(RemminaLanguageWrapperPlugin *plugin)
Initializes the Python plugin loaders.
gboolean python_wrapper_load(RemminaLanguageWrapperPlugin *plugin, const char *name)
static const gchar * python_wrapper_supported_extensions[]

Definition at line 67 of file python_wrapper_plugin.c.