1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
|
/*
* tbl.h
*
* "TBL" ASN.1 module C type definitions and prototypes
*
* This .h file was generated by snacc on Mon Jun 2 11:23:51 1997
*
* UBC snacc written compiler by Mike Sample
*
* NOTE: This is a machine generated file--editing not recommended
*/
#ifndef _tbl_h_
#define _tbl_h_
typedef enum
{
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
} 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) } */
#define BEncTBLTypeIdContent BEncAsnEnumContent
typedef AsnInt TBLTypeDefId; /* INTEGER */
#define BEncTBLTypeDefIdContent BEncAsnIntContent
typedef enum
{
UNIVERSAL = 0,
APPLICATION = 1,
CONTEXT = 2,
PRIVATE = 3
} TBLTagClass; /* ENUMERATED { UNIVERSAL (0), APPLICATION (1), CONTEXT (2), PRIVATE (3) } */
#define BEncTBLTagClassContent BEncAsnEnumContent
typedef struct TBLRange /* SEQUENCE */
{
AsnInt from; /* [0] IMPLICIT INTEGER */
AsnInt to; /* [1] IMPLICIT INTEGER */
} TBLRange;
AsnLen BEncTBLRangeContent PROTO ((BUF_TYPE b, TBLRange *v));
typedef struct TBLNamedNumber /* SEQUENCE */
{
PrintableString name; /* [0] IMPLICIT PrintableString */
AsnInt value; /* [1] IMPLICIT INTEGER */
} TBLNamedNumber;
AsnLen BEncTBLNamedNumberContent PROTO ((BUF_TYPE b, TBLNamedNumber *v));
typedef AsnList TBLNamedNumberList; /* SEQUENCE OF TBLNamedNumber */
AsnLen BEncTBLNamedNumberListContent PROTO ((BUF_TYPE b, TBLNamedNumberList *v));
typedef struct TBLTypeRef /* SEQUENCE */
{
TBLTypeDefId typeDef; /* TBLTypeDefId */
AsnBool implicit; /* BOOLEAN */
} TBLTypeRef;
AsnLen BEncTBLTypeRefContent PROTO ((BUF_TYPE b, TBLTypeRef *v));
typedef struct TBLTag /* SEQUENCE */
{
TBLTagClass tclass; /* TBLTagClass */
AsnInt code; /* INTEGER (0..MAX) */
} TBLTag;
AsnLen BEncTBLTagContent PROTO ((BUF_TYPE b, TBLTag *v));
typedef AsnList TBLTypeSeqOf; /* SEQUENCE OF TBLTag */
AsnLen BEncTBLTypeSeqOfContent PROTO ((BUF_TYPE b, TBLTypeSeqOf *v));
typedef AsnList TBLTypeContentSeqOf; /* SEQUENCE OF TBLType */
AsnLen BEncTBLTypeContentSeqOfContent PROTO ((BUF_TYPE b, TBLTypeContentSeqOf *v));
typedef struct TBLType /* SEQUENCE */
{
TBLTypeId typeId; /* [0] IMPLICIT TBLTypeId */
AsnBool optional; /* [1] IMPLICIT BOOLEAN */
TBLTypeSeqOf* tagList; /* [2] IMPLICIT TBLTypeSeqOf OPTIONAL */
struct TBLTypeContent* content; /* [3] TBLTypeContent */
PrintableString fieldName; /* [4] IMPLICIT PrintableString OPTIONAL */
struct TBLRange* constraint; /* [5] IMPLICIT TBLRange OPTIONAL */
TBLNamedNumberList* values; /* [6] IMPLICIT TBLNamedNumberList OPTIONAL */
} TBLType;
AsnLen BEncTBLTypeContent PROTO ((BUF_TYPE b, TBLType *v));
typedef struct TBLTypeContent /* CHOICE */
{
enum TBLTypeContentChoiceId
{
TBLTYPECONTENT_PRIMTYPE,
TBLTYPECONTENT_ELMTS,
TBLTYPECONTENT_TYPEREF
} choiceId;
union TBLTypeContentChoiceUnion
{
AsnNull primType; /* [0] IMPLICIT NULL */
TBLTypeContentSeqOf* elmts; /* [1] IMPLICIT TBLTypeContentSeqOf */
struct TBLTypeRef* typeRef; /* [2] IMPLICIT TBLTypeRef */
} a;
} TBLTypeContent;
AsnLen BEncTBLTypeContentContent PROTO ((BUF_TYPE b, TBLTypeContent *v));
typedef struct TBLTypeDef /* SEQUENCE */
{
TBLTypeDefId typeDefId; /* TBLTypeDefId */
PrintableString typeName; /* PrintableString */
struct TBLType* type; /* TBLType */
AsnNull* isPdu; /* NULL OPTIONAL */
} TBLTypeDef;
AsnLen BEncTBLTypeDefContent PROTO ((BUF_TYPE b, TBLTypeDef *v));
typedef AsnList TBLModuleSeqOf; /* SEQUENCE OF TBLTypeDef */
AsnLen BEncTBLModuleSeqOfContent PROTO ((BUF_TYPE b, TBLModuleSeqOf *v));
typedef struct TBLModule /* SEQUENCE */
{
PrintableString name; /* [0] IMPLICIT PrintableString */
AsnOid id; /* [1] IMPLICIT OBJECT IDENTIFIER OPTIONAL */
AsnBool isUseful; /* [2] IMPLICIT BOOLEAN */
TBLModuleSeqOf* typeDefs; /* [3] IMPLICIT TBLModuleSeqOf */
} TBLModule;
AsnLen BEncTBLModuleContent PROTO ((BUF_TYPE b, TBLModule *v));
typedef AsnList TBLSeqOf; /* SEQUENCE OF TBLModule */
AsnLen BEncTBLSeqOfContent PROTO ((BUF_TYPE b, TBLSeqOf *v));
typedef struct TBL /* SEQUENCE */
{
AsnInt totalNumModules; /* INTEGER */
AsnInt totalNumTypeDefs; /* INTEGER */
AsnInt totalNumTypes; /* INTEGER */
AsnInt totalNumTags; /* INTEGER */
AsnInt totalNumStrings; /* INTEGER */
AsnInt totalLenStrings; /* INTEGER */
TBLSeqOf* modules; /* TBLSeqOf */
} TBL;
AsnLen BEncTBL PROTO ((BUF_TYPE b, TBL *v));
AsnLen BEncTBLContent PROTO ((BUF_TYPE b, TBL *v));
#endif /* conditional include of tbl.h */
|