blob: 5b3d606ceb76c3cbd06bf866486f1eaaa1969ee7 [file] [log] [blame]
Lev Walkina9cc46e2004-09-22 16:06:28 +00001
2/*** <<< INCLUDES [Programming] >>> ***/
3
4#include <Fault.h>
5#include <asn_SEQUENCE_OF.h>
6#include <constr_SEQUENCE_OF.h>
7
8/*** <<< DEPS [Programming] >>> ***/
9
10extern asn1_TYPE_descriptor_t asn1_DEF_Programming;
11
12/*** <<< TYPE-DECLS [Programming] >>> ***/
13
14
15typedef struct Programming {
16 A_SEQUENCE_OF(Fault_t) list;
17
18 /* Context for parsing across buffer boundaries */
19 ber_dec_ctx_t _ber_dec_ctx;
20} Programming_t;
21
22/*** <<< STAT-DEFS [Programming] >>> ***/
23
24static asn1_TYPE_member_t asn1_MBR_Programming[] = {
25 { ATF_NOFLAGS, 0, 0,
26 .tag = (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
27 .tag_mode = -1, /* IMPLICIT tag at current level */
28 .type = (void *)&asn1_DEF_Fault,
29 .memb_constraints = 0, /* Defer to actual type */
30 .name = ""
31 },
32};
33static ber_tlv_tag_t asn1_DEF_Programming_tags[] = {
34 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
35};
36static asn1_SET_OF_specifics_t asn1_DEF_Programming_specs = {
37 sizeof(struct Programming),
38 offsetof(struct Programming, _ber_dec_ctx),
39 0, /* XER encoding is XMLDelimitedItemList */
40};
41asn1_TYPE_descriptor_t asn1_DEF_Programming = {
42 "Programming",
43 SEQUENCE_OF_free,
44 SEQUENCE_OF_print,
45 SEQUENCE_OF_constraint,
46 SEQUENCE_OF_decode_ber,
47 SEQUENCE_OF_encode_der,
48 0, /* Not implemented yet */
49 SEQUENCE_OF_encode_xer,
50 0, /* Use generic outmost tag fetcher */
51 asn1_DEF_Programming_tags,
52 sizeof(asn1_DEF_Programming_tags)
53 /sizeof(asn1_DEF_Programming_tags[0]), /* 1 */
54 asn1_DEF_Programming_tags, /* Same as above */
55 sizeof(asn1_DEF_Programming_tags)
56 /sizeof(asn1_DEF_Programming_tags[0]), /* 1 */
57 1, /* Whether CONSTRUCTED */
58 asn1_MBR_Programming,
59 1, /* Single element */
60 &asn1_DEF_Programming_specs /* Additional specs */
61};
62
63
64/*** <<< INCLUDES [Fault] >>> ***/
65
66#include <Error.h>
67#include <asn_SET_OF.h>
68#include <constr_SET_OF.h>
69
70/*** <<< DEPS [Fault] >>> ***/
71
72extern asn1_TYPE_descriptor_t asn1_DEF_Fault;
73
74/*** <<< TYPE-DECLS [Fault] >>> ***/
75
76
77typedef struct Fault {
78 A_SET_OF(Error_t) list;
79
80 /* Context for parsing across buffer boundaries */
81 ber_dec_ctx_t _ber_dec_ctx;
82} Fault_t;
83
84/*** <<< STAT-DEFS [Fault] >>> ***/
85
86static asn1_TYPE_member_t asn1_MBR_Fault[] = {
87 { ATF_NOFLAGS, 0, 0,
88 .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
89 .tag_mode = 0,
90 .type = (void *)&asn1_DEF_Error,
91 .memb_constraints = 0, /* Defer to actual type */
92 .name = ""
93 },
94};
95static ber_tlv_tag_t asn1_DEF_Fault_tags[] = {
96 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
97};
98static asn1_SET_OF_specifics_t asn1_DEF_Fault_specs = {
99 sizeof(struct Fault),
100 offsetof(struct Fault, _ber_dec_ctx),
101 0, /* XER encoding is XMLDelimitedItemList */
102};
103asn1_TYPE_descriptor_t asn1_DEF_Fault = {
104 "Fault",
105 SET_OF_free,
106 SET_OF_print,
107 SET_OF_constraint,
108 SET_OF_decode_ber,
109 SET_OF_encode_der,
110 0, /* Not implemented yet */
111 SET_OF_encode_xer,
112 0, /* Use generic outmost tag fetcher */
113 asn1_DEF_Fault_tags,
114 sizeof(asn1_DEF_Fault_tags)
115 /sizeof(asn1_DEF_Fault_tags[0]), /* 1 */
116 asn1_DEF_Fault_tags, /* Same as above */
117 sizeof(asn1_DEF_Fault_tags)
118 /sizeof(asn1_DEF_Fault_tags[0]), /* 1 */
119 1, /* Whether CONSTRUCTED */
120 asn1_MBR_Fault,
121 1, /* Single element */
122 &asn1_DEF_Fault_specs /* Additional specs */
123};
124
125
126/*** <<< INCLUDES [Error] >>> ***/
127
128#include <constr_SEQUENCE.h>
129
130/*** <<< DEPS [Error] >>> ***/
131
132extern asn1_TYPE_descriptor_t asn1_DEF_Error;
133
134/*** <<< TYPE-DECLS [Error] >>> ***/
135
136
137typedef struct Error {
138 /*
139 * This type is extensible,
140 * possible extensions are below.
141 */
142
143 /* Context for parsing across buffer boundaries */
144 ber_dec_ctx_t _ber_dec_ctx;
145} Error_t;
146
147/*** <<< STAT-DEFS [Error] >>> ***/
148
149static ber_tlv_tag_t asn1_DEF_Error_tags[] = {
150 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
151};
152static asn1_TYPE_tag2member_t asn1_DEF_Error_tag2el[] = {
153};
154static asn1_SEQUENCE_specifics_t asn1_DEF_Error_specs = {
155 sizeof(struct Error),
156 offsetof(struct Error, _ber_dec_ctx),
157 asn1_DEF_Error_tag2el,
158 0, /* Count of tags in the map */
159 -1, /* Start extensions */
160 -1 /* Stop extensions */
161};
162asn1_TYPE_descriptor_t asn1_DEF_Error = {
163 "Error",
164 SEQUENCE_free,
165 SEQUENCE_print,
166 SEQUENCE_constraint,
167 SEQUENCE_decode_ber,
168 SEQUENCE_encode_der,
169 0, /* Not implemented yet */
170 SEQUENCE_encode_xer,
171 0, /* Use generic outmost tag fetcher */
172 asn1_DEF_Error_tags,
173 sizeof(asn1_DEF_Error_tags)
174 /sizeof(asn1_DEF_Error_tags[0]), /* 1 */
175 asn1_DEF_Error_tags, /* Same as above */
176 sizeof(asn1_DEF_Error_tags)
177 /sizeof(asn1_DEF_Error_tags[0]), /* 1 */
178 1, /* Whether CONSTRUCTED */
179 0, 0, /* No members */
180 &asn1_DEF_Error_specs /* Additional specs */
181};
182