wip
[oweals/gnunet.git] / src / include / gnunet_plugin_lib.h
index b8c7b99fe41e6cf2fe37853603ab2dc1753b1cbf..9608abd4ce3451c70c35a5465413af7981a30584 100644 (file)
@@ -50,6 +50,17 @@ extern "C"
 typedef void *(*GNUNET_PLUGIN_Callback) (void *arg);
 
 
+/**
+ * Test if a plugin exists.
+ *
+ * Note that the library must export a symbol called
+ * "library_name_init" for the test to succeed. 
+ *
+ * @param library_name name of the plugin to test if it is installed
+ * @return GNUNET_YES if the plugin exists, GNUNET_NO if not
+ */
+int GNUNET_PLUGIN_test (const char *library_name);
+
 /**
  * Setup plugin (runs the "init" callback and returns whatever "init"
  * returned).  If "init" returns NULL, the plugin is unloaded.