/usr/include/snacc/c/tbl.h is in libsnacc-dev 1.3bbn-11ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | /*
* tbl.h
*
* "TBL" ASN.1 module C type definitions and prototypes
*
* This .h file was generated by snacc on Tue Jan 3 13:29:35 2012
*
* 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
#define BDecTBLTypeIdContent BDecAsnEnumContent
#define PrintTBLTypeId PrintAsnEnum
#define FreeTBLTypeId FreeAsnEnum
typedef AsnInt TBLTypeDefId; /* INTEGER */
#define BEncTBLTypeDefIdContent BEncAsnIntContent
#define BDecTBLTypeDefIdContent BDecAsnIntContent
#define PrintTBLTypeDefId PrintAsnInt
#define FreeTBLTypeDefId FreeAsnInt
typedef enum
{
UNIVERSAL = 0,
APPLICATION = 1,
CONTEXT = 2,
PRIVATE = 3
} TBLTagClass; /* ENUMERATED { UNIVERSAL (0), APPLICATION (1), CONTEXT (2), PRIVATE (3) } */
#define BEncTBLTagClassContent BEncAsnEnumContent
#define BDecTBLTagClassContent BDecAsnEnumContent
#define PrintTBLTagClass PrintAsnEnum
#define FreeTBLTagClass FreeAsnEnum
typedef struct TBLRange /* SEQUENCE */
{
AsnInt from; /* [0] IMPLICIT INTEGER */
AsnInt to; /* [1] IMPLICIT INTEGER */
} TBLRange;
AsnLen BEncTBLRangeContent PROTO ((BUF_TYPE b, TBLRange *v));
void BDecTBLRangeContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLRange *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLRange PROTO ((FILE* f, TBLRange *v, unsigned short int indent));
void FreeTBLRange PROTO ((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));
void BDecTBLNamedNumberContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLNamedNumber *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLNamedNumber PROTO ((FILE* f, TBLNamedNumber *v, unsigned short int indent));
void FreeTBLNamedNumber PROTO ((TBLNamedNumber *v));
typedef AsnList TBLNamedNumberList; /* SEQUENCE OF TBLNamedNumber */
AsnLen BEncTBLNamedNumberListContent PROTO ((BUF_TYPE b, TBLNamedNumberList *v));
void BDecTBLNamedNumberListContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLNamedNumberList *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLNamedNumberList PROTO ((FILE* f, TBLNamedNumberList *v, unsigned short int indent));
void FreeTBLNamedNumberList PROTO ((TBLNamedNumberList *v));
typedef struct TBLTypeRef /* SEQUENCE */
{
TBLTypeDefId typeDef; /* TBLTypeDefId */
AsnBool implicit; /* BOOLEAN */
struct TBLTypeDef *typeDefPtr; /* Added by MS to hold resolved index */
} TBLTypeRef;
AsnLen BEncTBLTypeRefContent PROTO ((BUF_TYPE b, TBLTypeRef *v));
void BDecTBLTypeRefContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTypeRef *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTypeRef PROTO ((FILE* f, TBLTypeRef *v, unsigned short int indent));
void FreeTBLTypeRef PROTO ((TBLTypeRef *v));
typedef struct TBLTag /* SEQUENCE */
{
TBLTagClass tclass; /* TBLTagClass */
AsnInt code; /* INTEGER (0..MAX) */
BER_FORM form; /* added by MS to simplify enc/dec */
AsnTag encTag; /* added by MS to simplify enc/dec */
} TBLTag;
AsnLen BEncTBLTagContent PROTO ((BUF_TYPE b, TBLTag *v));
void BDecTBLTagContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTag *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTag PROTO ((FILE* f, TBLTag *v, unsigned short int indent));
void FreeTBLTag PROTO ((TBLTag *v));
typedef AsnList TBLTypeSeqOf; /* SEQUENCE OF TBLTag */
AsnLen BEncTBLTypeSeqOfContent PROTO ((BUF_TYPE b, TBLTypeSeqOf *v));
void BDecTBLTypeSeqOfContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTypeSeqOf *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTypeSeqOf PROTO ((FILE* f, TBLTypeSeqOf *v, unsigned short int indent));
void FreeTBLTypeSeqOf PROTO ((TBLTypeSeqOf *v));
typedef AsnList TBLTypeContentSeqOf; /* SEQUENCE OF TBLType */
AsnLen BEncTBLTypeContentSeqOfContent PROTO ((BUF_TYPE b, TBLTypeContentSeqOf *v));
void BDecTBLTypeContentSeqOfContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTypeContentSeqOf *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTypeContentSeqOf PROTO ((FILE* f, TBLTypeContentSeqOf *v, unsigned short int indent));
void FreeTBLTypeContentSeqOf PROTO ((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));
void BDecTBLTypeContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLType *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLType PROTO ((FILE* f, TBLType *v, unsigned short int indent));
void FreeTBLType PROTO ((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));
void BDecTBLTypeContentContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTypeContent *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTypeContent PROTO ((FILE* f, TBLTypeContent *v, unsigned short int indent));
void FreeTBLTypeContent PROTO ((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));
void BDecTBLTypeDefContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLTypeDef *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLTypeDef PROTO ((FILE* f, TBLTypeDef *v, unsigned short int indent));
void FreeTBLTypeDef PROTO ((TBLTypeDef *v));
typedef AsnList TBLModuleSeqOf; /* SEQUENCE OF TBLTypeDef */
AsnLen BEncTBLModuleSeqOfContent PROTO ((BUF_TYPE b, TBLModuleSeqOf *v));
void BDecTBLModuleSeqOfContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLModuleSeqOf *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLModuleSeqOf PROTO ((FILE* f, TBLModuleSeqOf *v, unsigned short int indent));
void FreeTBLModuleSeqOf PROTO ((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));
void BDecTBLModuleContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLModule *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLModule PROTO ((FILE* f, TBLModule *v, unsigned short int indent));
void FreeTBLModule PROTO ((TBLModule *v));
typedef AsnList TBLSeqOf; /* SEQUENCE OF TBLModule */
AsnLen BEncTBLSeqOfContent PROTO ((BUF_TYPE b, TBLSeqOf *v));
void BDecTBLSeqOfContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBLSeqOf *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBLSeqOf PROTO ((FILE* f, TBLSeqOf *v, unsigned short int indent));
void FreeTBLSeqOf PROTO ((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));
void BDecTBL PROTO ((BUF_TYPE b, TBL *result, AsnLen *bytesDecoded, ENV_TYPE env));
AsnLen BEncTBLContent PROTO ((BUF_TYPE b, TBL *v));
void BDecTBLContent PROTO ((BUF_TYPE b, AsnTag tagId0, AsnLen elmtLen0, TBL *v, AsnLen *bytesDecoded, ENV_TYPE env));
void PrintTBL PROTO ((FILE* f, TBL *v, unsigned short int indent));
void FreeTBL PROTO ((TBL *v));
#endif /* conditional include of tbl.h */
|