summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_plugins.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-21 12:15:48 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-21 12:15:48 +0000
commitc67945ebea571b20777ead4663d2788ff8abb924 (patch)
tree2dd3bec42e1e3d2e61ab97338b62ebf26e867d59 /src/transport/gnunet-service-transport_plugins.h
parent23fbfdade60daf4b88cec374ccd4532d8c87324b (diff)
prefix based plugin lookup for transport
Diffstat (limited to 'src/transport/gnunet-service-transport_plugins.h')
-rw-r--r--src/transport/gnunet-service-transport_plugins.h13
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);
struct GNUNET_TRANSPORT_PluginFunctions *
GST_plugins_find (const char *name);
+/**
+ * Obtain the plugin API based on a the stripped plugin name after the underscore.
+ *
+ * Example: GST_plugins_printer_find (http_client) will return all plugins
+ * starting with the prefix "http":
+ * http_client or server if loaded
+ *
+ * @param name name of the plugin
+ * @return the plugin's API, NULL if the plugin is not loaded
+ */
+struct GNUNET_TRANSPORT_PluginFunctions *
+GST_plugins_printer_find (const char *name);
+
/**
* Convert a given address to a human-readable format. Note that the