finalize enum type for extensions
This commit is contained in:
parent
fe457bb7ba
commit
b21ccdf250
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user