Plugins description (GNU Compiler Collection (GCC) Internals) (original) (raw)
Next: Registering custom attributes or pragmas, Previous: Interacting with the GCC Garbage Collector, Up: Plugins [Contents][Index]
23.5 Giving information about a plugin ¶
A plugin should give some information to the user about itself. This uses the following structure:
struct plugin_info { const char *version; const char *help; };
Such a structure is passed as the user_data
by the plugin’s init routine using register_callback
with thePLUGIN_INFO
pseudo-event and a null callback.