DEFAULT type support
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@349 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1parser/asn1p_value.h b/libasn1parser/asn1p_value.h
index 087521b..5310b01 100644
--- a/libasn1parser/asn1p_value.h
+++ b/libasn1parser/asn1p_value.h
@@ -13,9 +13,9 @@
*/
enum {
ATV_NOVALUE,
- ATV_REFERENCED,
- ATV_INTEGER,
- ATV_REAL,
+ ATV_NULL, /* A "NULL" value of type NULL. */
+ ATV_REAL, /* A constant floating-point value */
+ ATV_INTEGER, /* An integer constant */
ATV_MAX,
ATV_MIN,
ATV_TRUE,
@@ -23,6 +23,8 @@
ATV_STRING,
ATV_UNPARSED,
ATV_BITVECTOR,
+ ATV_REFERENCED, /* Reference to a value defined elsewhere */
+ ATV_CHOICE_IDENTIFIER, /* ChoiceIdentifier value */
} type; /* Value type and location */
union {
@@ -40,6 +42,10 @@
uint8_t *bits;
int size_in_bits;
} binary_vector;
+ struct {
+ char *identifier;
+ struct asn1p_value_s *value;
+ } choice_identifier;
} value;
} asn1p_value_t;