4 * "TBL" ASN.1 module C type definitions and prototypes
6 * This .h file was generated by snacc on Tue Mar 19 07:24:43 2002
8 * UBC snacc written compiler by Mike Sample
10 * NOTE: This is a machine generated file--editing not recommended
36 } TBLTypeId
; /* ENUMERATED { TBL_BOOLEAN (0), TBL_INTEGER (1), TBL_BITSTRING (2), TBL_OCTETSTRING (3), TBL_NULL (4), TBL_OID (5), TBL_REAL (6), TBL_ENUMERATED (7), TBL_SEQUENCE (8), TBL_SET (9), TBL_SEQUENCEOF (10), TBL_SETOF (11), TBL_CHOICE (12), TBL_TYPEREF (13) } */
38 #define BEncTBLTypeIdContent BEncAsnEnumContent
43 typedef AsnInt TBLTypeDefId
; /* INTEGER */
45 #define BEncTBLTypeDefIdContent BEncAsnIntContent
56 } TBLTagClass
; /* ENUMERATED { UNIVERSAL (0), APPLICATION (1), CONTEXT (2), PRIVATE (3) } */
58 #define BEncTBLTagClassContent BEncAsnEnumContent
63 typedef struct TBLRange
/* SEQUENCE */
65 AsnInt from
; /* [0] IMPLICIT INTEGER */
66 AsnInt to
; /* [1] IMPLICIT INTEGER */
69 AsnLen BEncTBLRangeContent
PROTO ((BUF_TYPE b
, TBLRange
*v
));
74 typedef struct TBLNamedNumber
/* SEQUENCE */
76 PrintableString name
; /* [0] IMPLICIT PrintableString */
77 AsnInt value
; /* [1] IMPLICIT INTEGER */
80 AsnLen BEncTBLNamedNumberContent
PROTO ((BUF_TYPE b
, TBLNamedNumber
*v
));
85 typedef AsnList TBLNamedNumberList
; /* SEQUENCE OF TBLNamedNumber */
87 AsnLen BEncTBLNamedNumberListContent
PROTO ((BUF_TYPE b
, TBLNamedNumberList
*v
));
92 typedef struct TBLTypeRef
/* SEQUENCE */
94 TBLTypeDefId typeDef
; /* TBLTypeDefId */
95 AsnBool implicit
; /* BOOLEAN */
98 AsnLen BEncTBLTypeRefContent
PROTO ((BUF_TYPE b
, TBLTypeRef
*v
));
103 typedef struct TBLTag
/* SEQUENCE */
105 TBLTagClass tclass
; /* TBLTagClass */
106 AsnInt code
; /* INTEGER (0..MAX) */
109 AsnLen BEncTBLTagContent
PROTO ((BUF_TYPE b
, TBLTag
*v
));
114 typedef AsnList TBLTypeSeqOf
; /* SEQUENCE OF TBLTag */
116 AsnLen BEncTBLTypeSeqOfContent
PROTO ((BUF_TYPE b
, TBLTypeSeqOf
*v
));
121 typedef AsnList TBLTypeContentSeqOf
; /* SEQUENCE OF TBLType */
123 AsnLen BEncTBLTypeContentSeqOfContent
PROTO ((BUF_TYPE b
, TBLTypeContentSeqOf
*v
));
128 typedef struct TBLType
/* SEQUENCE */
130 TBLTypeId typeId
; /* [0] IMPLICIT TBLTypeId */
131 AsnBool optional
; /* [1] IMPLICIT BOOLEAN */
132 TBLTypeSeqOf
* tagList
; /* [2] IMPLICIT TBLTypeSeqOf OPTIONAL */
133 struct TBLTypeContent
* content
; /* [3] TBLTypeContent */
134 PrintableString fieldName
; /* [4] IMPLICIT PrintableString OPTIONAL */
135 struct TBLRange
* constraint
; /* [5] IMPLICIT TBLRange OPTIONAL */
136 TBLNamedNumberList
* values
; /* [6] IMPLICIT TBLNamedNumberList OPTIONAL */
139 AsnLen BEncTBLTypeContent
PROTO ((BUF_TYPE b
, TBLType
*v
));
144 typedef struct TBLTypeContent
/* CHOICE */
146 enum TBLTypeContentChoiceId
148 TBLTYPECONTENT_PRIMTYPE
,
149 TBLTYPECONTENT_ELMTS
,
150 TBLTYPECONTENT_TYPEREF
152 union TBLTypeContentChoiceUnion
154 AsnNull primType
; /* [0] IMPLICIT NULL */
155 TBLTypeContentSeqOf
* elmts
; /* [1] IMPLICIT TBLTypeContentSeqOf */
156 struct TBLTypeRef
* typeRef
; /* [2] IMPLICIT TBLTypeRef */
160 AsnLen BEncTBLTypeContentContent
PROTO ((BUF_TYPE b
, TBLTypeContent
*v
));
165 typedef struct TBLTypeDef
/* SEQUENCE */
167 TBLTypeDefId typeDefId
; /* TBLTypeDefId */
168 PrintableString typeName
; /* PrintableString */
169 struct TBLType
* type
; /* TBLType */
170 AsnNull
* isPdu
; /* NULL OPTIONAL */
173 AsnLen BEncTBLTypeDefContent
PROTO ((BUF_TYPE b
, TBLTypeDef
*v
));
178 typedef AsnList TBLModuleSeqOf
; /* SEQUENCE OF TBLTypeDef */
180 AsnLen BEncTBLModuleSeqOfContent
PROTO ((BUF_TYPE b
, TBLModuleSeqOf
*v
));
185 typedef struct TBLModule
/* SEQUENCE */
187 PrintableString name
; /* [0] IMPLICIT PrintableString */
188 AsnOid id
; /* [1] IMPLICIT OBJECT IDENTIFIER OPTIONAL */
189 AsnBool isUseful
; /* [2] IMPLICIT BOOLEAN */
190 TBLModuleSeqOf
* typeDefs
; /* [3] IMPLICIT TBLModuleSeqOf */
193 AsnLen BEncTBLModuleContent
PROTO ((BUF_TYPE b
, TBLModule
*v
));
198 typedef AsnList TBLSeqOf
; /* SEQUENCE OF TBLModule */
200 AsnLen BEncTBLSeqOfContent
PROTO ((BUF_TYPE b
, TBLSeqOf
*v
));
205 typedef struct TBL
/* SEQUENCE */
207 AsnInt totalNumModules
; /* INTEGER */
208 AsnInt totalNumTypeDefs
; /* INTEGER */
209 AsnInt totalNumTypes
; /* INTEGER */
210 AsnInt totalNumTags
; /* INTEGER */
211 AsnInt totalNumStrings
; /* INTEGER */
212 AsnInt totalLenStrings
; /* INTEGER */
213 TBLSeqOf
* modules
; /* TBLSeqOf */
216 AsnLen BEncTBL
PROTO ((BUF_TYPE b
, TBL
*v
));
218 AsnLen BEncTBLContent
PROTO ((BUF_TYPE b
, TBL
*v
));
224 #endif /* conditional include of tbl.h */