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/include/taler_extensions.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/include/taler_extensions.h') diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h index 40b14402..1ae8ad1e 100644 --- a/src/include/taler_extensions.h +++ b/src/include/taler_extensions.h @@ -31,8 +31,12 @@ enum TALER_Extension_Type { - TALER_Extension_AgeRestriction = 0, - TALER_Extension_MaxPredefined = 1 // Must be last of the predefined + TALER_Extension_Refund = 0, + TALER_Extension_AgeRestriction = 1, + TALER_Extension_P2P = 2, + TALER_Extension_AuctionBrandt = 3, + TALER_Extension_Escrow = 4, + TALER_Extension_MaxPredefined = 5 // Must be last of the predefined }; @@ -59,6 +63,7 @@ struct TALER_Extension char *version; void *config; bool enabled; + bool has_config; /* some extension might not have a configuration */ json_t *config_json; void (*disable)(struct TALER_Extension *ext); @@ -78,6 +83,10 @@ struct TALER_Extension const json_t *root, const char *const args[]); + MHD_RESULT (*http_get_handler)( + struct MHD_Connection *connection, + const char *const args[]); + }; /** -- cgit v1.2.3