55 CallPythonMethod(plugin->
instance,
"exec_func", NULL);
62 PyObject* instance = plugin->
instance;
72 remmina_plugin->
domain = GETTEXT_PACKAGE;
73 remmina_plugin->
name = PyUnicode_AsUTF8(PyObject_GetAttrString(instance,
ATTR_NAME));
Maps an instance of a Python plugin to a Remmina one.
gboolean python_wrapper_check_attribute(PyObject *instance, const char *attr_name)
Checks if a given attribute exists.
const char * ATTR_VERSION
void * python_wrapper_malloc(int bytes)
Allocates memory and checks for errors before returning.
static RemminaProtocolPlugin remmina_plugin
RemminaToolPlugin * tool_plugin
Contains functions and constants that are commonly used throughout the Python plugin implementation...
PyPlugin * python_wrapper_get_plugin(const gchar *name)
Tries to find the Python plugin matching to the given instance of RemminaPlugin.
void python_wrapper_add_plugin(PyPlugin *plugin)
Registers the given plugin if no other plugin with the same name has been already registered...
RemminaPlugin * generic_plugin
const char * ATTR_DESCRIPTION