void (*ND_PluginFunc) (ND_Plugin *plugin, void *user_data); void nd_plugin_init (void); void nd_plugin_run (ND_Plugin *plugin); const char* nd_plugin_get_name (ND_Plugin *plugin); const char* nd_plugin_get_description (ND_Plugin *plugin); const char* nd_plugin_get_author (ND_Plugin *plugin); const char* nd_plugin_get_version (ND_Plugin *plugin); void nd_plugin_show_about (ND_Plugin *plugin); void nd_plugin_foreach (ND_PluginFunc callback, void *user_data); |
void (*ND_PluginFunc) (ND_Plugin *plugin, void *user_data); |
This is the signature of functions that can be passed to
nd_plugin_foreach()
.
iterated plugin.
arbitrary user data.
void nd_plugin_init (void); |
The function scans the plugin directories, reads in the plugins it finds and hooks them into the main window.
void nd_plugin_run (ND_Plugin *plugin); |
The function runs the given plugin on the current trace. If there is no current trace, it just returns.
plugin to run.
const char* nd_plugin_get_name (ND_Plugin *plugin); |
The function returns a pointer to statically allocated memory containing the plugin's name.
plugin to query.
plugin name.
const char* nd_plugin_get_description (ND_Plugin *plugin); |
The function returns a pointer to statically allocated memory containing a string describing the plugin.
plugin to query.
description string.
const char* nd_plugin_get_author (ND_Plugin *plugin); |
The function returns a pointer to statically allocated memory containing a string with the author's name.
plugin to query.
author name string.
const char* nd_plugin_get_version (ND_Plugin *plugin); |
The function returns a pointer to statically allocated memory containing the plugin's version string.
plugin to query.
version string.
void nd_plugin_show_about (ND_Plugin *plugin); |
The function shows the About dialog for plugin, containing version and author info, a description etc.
plugin whose About info is shown.
void nd_plugin_foreach (ND_PluginFunc callback, void *user_data); |
The function iterates over the registered plugins and applies a callback function to each of them.
callback to call for each plugin.
arbitrary user data passed through to callback.