From 72cbf663952bc95888aa2187894da78725e7590c Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sun, 2 Oct 2022 22:51:54 +0200 Subject: WiP: added auction_brandt as extension - added an extension to handle auctions via libbrandt - /extensions/auction_brandt GET and POST handler defined - initial parsing of transcript.json implemented, yet WiP - multiple cleanups and changes to extension handling --- src/exchange-tools/taler-exchange-offline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/exchange-tools/taler-exchange-offline.c') diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index e7cb94b5..3d980c27 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -4255,13 +4255,17 @@ do_extensions_show (char *const *args) GNUNET_assert (NULL != exts); for (it = TALER_extensions_get_head (); - NULL != it; + NULL != it && NULL != it->extension; it = it->next) + { + const struct TALER_Extension *extension = it->extension; + GNUNET_assert (0 == json_object_set_new (exts, it->extension->name, it->extension->config_to_json ( it->extension))); + } obj = GNUNET_JSON_PACK ( GNUNET_JSON_pack_object_steal ("extensions", exts)); -- cgit v1.2.3