finalize enum type for extensions

This commit is contained in:
Özgür Kesim 2021-12-15 14:37:25 +01:00
parent fe457bb7ba
commit b21ccdf250
Signed by: oec
GPG Key ID: 3D76A56D79EDD9D7

View File

@ -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