void (*LND_ProtoPluginFunc) (LND_ProtoPlugin *plugin, void *user_data); void libnd_proto_plugin_init (void); const char* libnd_proto_plugin_get_name (LND_ProtoPlugin *pp); const char* libnd_proto_plugin_get_description (LND_ProtoPlugin *pp); const char* libnd_proto_plugin_get_version (LND_ProtoPlugin *pp); const char* libnd_proto_plugin_get_author (LND_ProtoPlugin *pp); void libnd_proto_plugin_foreach (LND_ProtoPluginFunc callback, void *user_data); |
void (*LND_ProtoPluginFunc) (LND_ProtoPlugin *plugin, void *user_data); |
This is the signature of functions that can be passed to
libnd_plugin_foreach()
.
iterated plugin.
arbitrary user data.
void libnd_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* libnd_proto_plugin_get_name (LND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing a string with the plugin's name.
plugin to query.
name of the protocol plugin.
const char* libnd_proto_plugin_get_description (LND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing a string describing the plugin.
plugin to query.
description string.
const char* libnd_proto_plugin_get_version (LND_ProtoPlugin *pp); |
The function returns a pointer to statically allocated memory containing a string describing the plugin version.
plugin to query.
version string.
const char* libnd_proto_plugin_get_author (LND_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.
void libnd_proto_plugin_foreach (LND_ProtoPluginFunc callback, void *user_data); |
The function iterates over the registered protocol plugins and applies a callback function to each of them.
callback to call for each protocol plugin.
arbitrary user data passed through to callback.