diff options
author | Özgür Kesim <oec-taler@kesim.org> | 2022-10-02 22:51:54 +0200 |
---|---|---|
committer | Özgür Kesim <oec-taler@kesim.org> | 2022-10-02 22:51:54 +0200 |
commit | 72cbf663952bc95888aa2187894da78725e7590c (patch) | |
tree | 0d0f9758e082a36487a85fd4335f0342f5c1e6f6 /src/include/taler_extensions.h | |
parent | 04c7e0bb337dd88dde60293d94d2e192a8fc2ff5 (diff) |
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
Diffstat (limited to 'src/include/taler_extensions.h')
-rw-r--r-- | src/include/taler_extensions.h | 13 |
1 files changed, 11 insertions, 2 deletions
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[]); + }; /** |