diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-01-22 00:26:43 +0100 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-01-22 00:26:43 +0100 |
commit | 1962ed6b0b44c6c7d3503b3340da1be147e25f87 (patch) | |
tree | 753f6eb6a598e86b7ebd8e24251ca2eacb65dcb7 /src/include/taler_extensions.h | |
parent | 0b56de6c994d3e525aa2d0195ff4607db3f14715 (diff) | |
download | exchange-1962ed6b0b44c6c7d3503b3340da1be147e25f87.tar.xz |
improvements in extension handling
- extensions_sig is needed globally
- keep original json with config of extension
- fixed various bugs re: extension handling
Diffstat (limited to 'src/include/taler_extensions.h')
-rw-r--r-- | src/include/taler_extensions.h | 14 |
1 files changed, 7 insertions, 7 deletions
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 |