diff options
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.h')
-rw-r--r-- | src/transport/gnunet-service-transport_plugins.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_plugins.h b/src/transport/gnunet-service-transport_plugins.h index 04bb5ea22..97e8f4c6f 100644 --- a/src/transport/gnunet-service-transport_plugins.h +++ b/src/transport/gnunet-service-transport_plugins.h | |||
@@ -66,6 +66,19 @@ GST_plugins_unload (void); | |||
66 | struct GNUNET_TRANSPORT_PluginFunctions * | 66 | struct GNUNET_TRANSPORT_PluginFunctions * |
67 | GST_plugins_find (const char *name); | 67 | GST_plugins_find (const char *name); |
68 | 68 | ||
69 | /** | ||
70 | * Obtain the plugin API based on a the stripped plugin name after the underscore. | ||
71 | * | ||
72 | * Example: GST_plugins_printer_find (http_client) will return all plugins | ||
73 | * starting with the prefix "http": | ||
74 | * http_client or server if loaded | ||
75 | * | ||
76 | * @param name name of the plugin | ||
77 | * @return the plugin's API, NULL if the plugin is not loaded | ||
78 | */ | ||
79 | struct GNUNET_TRANSPORT_PluginFunctions * | ||
80 | GST_plugins_printer_find (const char *name); | ||
81 | |||
69 | 82 | ||
70 | /** | 83 | /** |
71 | * Convert a given address to a human-readable format. Note that the | 84 | * Convert a given address to a human-readable format. Note that the |