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.
static RemminaProtocolPlugin remmina_plugin
PyPlugin * remmina_plugin_python_get_plugin(const char *name)
Tries to find the Python plugin matching to the given instance of RemminaPlugin.
RemminaToolPlugin * tool_plugin
const char * ATTR_DESCRIPTION
RemminaPlugin * generic_plugin
void remmina_plugin_python_add_plugin(PyPlugin *plugin)
Registers the given plugin if no other plugin with the same name has been already registered...
gboolean remmina_plugin_python_check_attribute(PyObject *instance, const char *attr_name)
Checks if a given attribute exists.
Contains functions and constants that are commonly used throughout the Python plugin implementation...
void * remmina_plugin_python_malloc(int bytes)
Allocates memory and checks for errors before returning.
const char * ATTR_VERSION