From b21ccdf250fac70ff998822a0ef21ae3a3fab39c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= Date: Wed, 15 Dec 2021 14:37:25 +0100 Subject: [PATCH] finalize enum type for extensions --- src/include/taler_extensions.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/include/taler_extensions.h b/src/include/taler_extensions.h index 74d13f9e4..8f3dd69e7 100644 --- a/src/include/taler_extensions.h +++ b/src/include/taler_extensions.h @@ -37,7 +37,8 @@ enum TALER_Extension_ReturnValue enum TALER_Extension_Type { TALER_Extension_Peer2Peer = 0, - TALER_Extension_AgeRestriction = 1 + TALER_Extension_AgeRestriction = 1, + TALER_Extension_Max = 2 }; struct TALER_Extension @@ -55,13 +56,13 @@ struct TALER_Peer2Peer_Config }; /** - * g_TALER_Extensions_by_Type is the global manifest with the list supported - * extensions, sorted by TALER_Extension_Type. + * TEH_extensions is the global manifest with the list supported extensions, + * sorted by TALER_Extension_Type. * * TODO: Mutex? * **/ -struct TALER_Extension g_TALER_Extensions_by_Type[] = { +struct TALER_Extension TEH_extensions[TALER_Extension_Max] = { [TALER_Extension_Peer2Peer] = { .type = TALER_Extension_Peer2Peer, .name = "peer2peer", @@ -79,14 +80,16 @@ struct TALER_Extension g_TALER_Extensions_by_Type[] = { /* * TALER Peer2Peer Extension + * FIXME */ + /* * TALER Age Restriction Extension */ #define TALER_EXTENSION_SECTION_AGE_RESTRICTION (TALER_EXTENSION_SECTION_PREFIX \ - "agerestriction") + "age_restriction") /** * The default age mask represents the age groups