summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-03-03 19:23:34 +0100
committerChristian Grothoff <christian@grothoff.org>2017-03-03 19:24:08 +0100
commit4d2faa5ec92213efc4ee40f707ab0ad3615e5433 (patch)
tree4bb94dba0c77cca9d0ba6b7fb223bc9476edc08e /src/include
parentd06dac625072cad6888c9d0a77f6bd19faa5f2d9 (diff)
downloadexchange-4d2faa5ec92213efc4ee40f707ab0ad3615e5433.tar.gz
exchange-4d2faa5ec92213efc4ee40f707ab0ad3615e5433.tar.bz2
exchange-4d2faa5ec92213efc4ee40f707ab0ad3615e5433.zip
changing wire plugin specification from [exchange]WIREFORMAT to [exchange-wire-PLUGIN]enable=YES/NO
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_wire_lib.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_wire_lib.h b/src/include/taler_wire_lib.h
index b67f620f4..68c36e889 100644
--- a/src/include/taler_wire_lib.h
+++ b/src/include/taler_wire_lib.h
@@ -45,4 +45,28 @@ void
TALER_WIRE_plugin_unload (struct TALER_WIRE_Plugin *plugin);
+/**
+ * Signature of a function to be called on each enabled
+ * wire plugin.
+ *
+ * @param cls closure
+ * @param name name of the enabled plugin
+ */
+typedef void
+(*TALER_WIRE_EnabledCallback)(void *cls,
+ const char *name);
+
+
+/**
+ * Check which wire plugins are enabled in @a cfg and call @a cb for each one.
+ *
+ * @param cfg configuration to use
+ * @param cb callback to invoke
+ * @param cb_cls closure for @a cb
+ */
+void
+TALER_WIRE_find_enabled (const struct GNUNET_CONFIGURATION_Handle *cfg,
+ TALER_WIRE_EnabledCallback cb,
+ void *cb_cls);
+
#endif