Geany dev
Data Fields
GeanyProxyFuncs Struct Reference

Hooks that need to be implemented by every proxy. More...

#include <plugindata.h>

Data Fields

gpointer(* load )(GeanyPlugin *proxy, GeanyPlugin *subplugin, const gchar *filename, gpointer pdata)
 Called after probe(), to perform the actual job of loading the plugin.
 
gint(* probe )(GeanyPlugin *proxy, const gchar *filename, gpointer pdata)
 Called to determine whether the proxy is truly responsible for the requested plugin. More...
 
void(* unload )(GeanyPlugin *proxy, GeanyPlugin *subplugin, gpointer load_data, gpointer pdata)
 Called when the user initiates unloading of a plugin, e.g. More...
 

Detailed Description

Hooks that need to be implemented by every proxy.

See also
geany_plugin_register_proxy() for a full description of the proxy mechanism.
Since
1.26 (API 226)

Field Documentation

◆ probe

gint(* GeanyProxyFuncs::probe) (GeanyPlugin *proxy, const gchar *filename, gpointer pdata)

Called to determine whether the proxy is truly responsible for the requested plugin.

A NULL pointer assumes the probe() function would always return GEANY_PROXY_MATCH

◆ unload

void(* GeanyProxyFuncs::unload) (GeanyPlugin *proxy, GeanyPlugin *subplugin, gpointer load_data, gpointer pdata)

Called when the user initiates unloading of a plugin, e.g.

on Geany exit