Geany dev
Data Fields
GeanyPluginFuncs Struct Reference

Callback functions that need to be implemented for every plugin. More...

#include <plugindata.h>

Data Fields

PluginCallbackcallbacks
 Array of plugin-provided signal handlers. More...
 
void(* cleanup )(GeanyPlugin *plugin, gpointer pdata)
 Called when the plugin is disabled or when Geany exits (must not be NULL)
 
GtkWidget *(* configure )(GeanyPlugin *plugin, GtkDialog *dialog, gpointer pdata)
 plugins configure dialog, optional (can be NULL)
 
void(* help )(GeanyPlugin *plugin, gpointer pdata)
 Called when the plugin should show some help, optional (can be NULL)
 
gboolean(* init )(GeanyPlugin *plugin, gpointer pdata)
 Called to initialize the plugin, when the user activates it (must not be NULL)
 

Detailed Description

Callback functions that need to be implemented for every plugin.

These callbacks should be registered by the plugin within Geany's call to geany_load_module() by calling geany_plugin_register() with an instance of this type.

Geany will then call the callbacks at appropriate times. Each gets passed the plugin-defined data pointer as well as the corresponding GeanyPlugin instance pointer.

Since
1.26 (API 225)
See also
Plugin HowTo

Field Documentation

◆ callbacks

PluginCallback* GeanyPluginFuncs::callbacks

Array of plugin-provided signal handlers.

See also
PluginCallback