void (*ND_ProtoPluginFunc) (ND_ProtoPlugin *plugin, void *user_data); void nd_proto_plugin_init (void); const char* nd_proto_plugin_get_description (ND_ProtoPlugin *pp); const char* nd_proto_plugin_get_author (ND_ProtoPlugin *pp); const char* nd_proto_plugin_get_version (ND_ProtoPlugin *pp); const char* nd_proto_plugin_get_name (ND_ProtoPlugin *pp); void nd_proto_plugin_show_about (ND_ProtoPlugin *pp); void nd_proto_plugin_foreach (ND_ProtoPluginFunc callback, void *user_data); |
void (*ND_ProtoPluginFunc) (ND_ProtoPlugin *plugin, void *user_data); |
This is the signature of functions that can be passed to
nd_proto_plugin_foreach()
.
iterated plugin.
arbitrary user data.
void nd_proto_plugin_init (void); |
The function scans the plugin directories, reads in the plugins it finds and hooks them into the main window and the plugin registry.
const char* nd_proto_plugin_get_description (ND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing a string describing the plugin.
plugin to query.
description string.
const char* nd_proto_plugin_get_author (ND_ProtoPlugin *pp); |
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_proto_plugin_get_version (ND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing the plugin's version string.
plugin to query.
version string.
const char* nd_proto_plugin_get_name (ND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing the plugin name.
plugin to query.
plugin name.
void nd_proto_plugin_show_about (ND_ProtoPlugin *pp); |
The function shows the About dialog for pp, containing version and author info, a description etc.
plugin whose About info is shown.
void nd_proto_plugin_foreach (ND_ProtoPluginFunc callback, void *user_data); |
The function iterates over the registered protocol plugins and applies callback to each of them.
callback to call for each plugin.
arbitrary user data passed through to callback.