summaryrefslogtreecommitdiff
path: root/src/include/taler_extensions.h
diff options
context:
space:
mode:
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
commit1962ed6b0b44c6c7d3503b3340da1be147e25f87 (patch)
tree753f6eb6a598e86b7ebd8e24251ca2eacb65dcb7 /src/include/taler_extensions.h
parent0b56de6c994d3e525aa2d0195ff4607db3f14715 (diff)
downloadexchange-1962ed6b0b44c6c7d3503b3340da1be147e25f87.tar.gz
exchange-1962ed6b0b44c6c7d3503b3340da1be147e25f87.tar.bz2
exchange-1962ed6b0b44c6c7d3503b3340da1be147e25f87.zip
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.h14
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