From 1962ed6b0b44c6c7d3503b3340da1be147e25f87 Mon Sep 17 00:00:00 2001 From: Özgür Kesim Date: Sat, 22 Jan 2022 00:26:43 +0100 Subject: improvements in extension handling - extensions_sig is needed globally - keep original json with config of extension - fixed various bugs re: extension handling --- src/include/taler_extensions.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/include/taler_extensions.h') diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h index 31e5c6738..7199304d9 100644 --- a/src/include/taler_extensions.h +++ b/src/include/taler_extensions.h @@ -31,26 +31,27 @@ enum TALER_Extension_Type { TALER_Extension_AgeRestriction = 0, - TALER_Extension_Peer2Peer = 1, - TALER_Extension_MaxPredefined = 2 // Must be last + TALER_Extension_MaxPredefined = 1 // Must be last of the predefined }; /* * Represents the implementation of an extension. + * TODO: add documentation */ struct TALER_Extension { enum TALER_Extension_Type type; char *name; bool critical; - bool enabled; + char *version; void *config; + json_t *config_json; + void (*disable)(struct TALER_Extension *this); enum GNUNET_GenericReturnValue (*test_config)(const json_t *config); enum GNUNET_GenericReturnValue (*parse_and_set_config)(struct TALER_Extension *this, - const json_t *config); - json_t *(*config_to_json)(const struct TALER_Extension *this); + json_t *config); }; /** @@ -132,8 +133,7 @@ TALER_get_age_mask (const struct GNUNET_CONFIGURATION_Handle *cfg, /* - * TALER Peer2Peer Extension - * TODO oec + * TODO: Add Peer2Peer Extension */ #endif -- cgit v1.2.3