| 1 |
|
| 2 |
/*** <<< INCLUDES [LogLine] >>> ***/ |
| 3 |
|
| 4 |
#include <IA5String.h> |
| 5 |
#include <asn_SEQUENCE_OF.h> |
| 6 |
#include <constr_SEQUENCE_OF.h> |
| 7 |
#include <constr_SEQUENCE.h> |
| 8 |
|
| 9 |
/*** <<< FWD-DECLS [LogLine] >>> ***/ |
| 10 |
|
| 11 |
struct VariablePartSet; |
| 12 |
|
| 13 |
/*** <<< TYPE-DECLS [LogLine] >>> ***/ |
| 14 |
|
| 15 |
typedef struct LogLine { |
| 16 |
IA5String_t line_digest; |
| 17 |
struct varsets { |
| 18 |
A_SEQUENCE_OF(struct VariablePartSet) list; |
| 19 |
|
| 20 |
/* Context for parsing across buffer boundaries */ |
| 21 |
asn_struct_ctx_t _asn_ctx; |
| 22 |
} varsets; |
| 23 |
/* |
| 24 |
* This type is extensible, |
| 25 |
* possible extensions are below. |
| 26 |
*/ |
| 27 |
|
| 28 |
/* Context for parsing across buffer boundaries */ |
| 29 |
asn_struct_ctx_t _asn_ctx; |
| 30 |
} LogLine_t; |
| 31 |
|
| 32 |
/*** <<< FUNC-DECLS [LogLine] >>> ***/ |
| 33 |
|
| 34 |
extern asn_TYPE_descriptor_t asn_DEF_LogLine; |
| 35 |
|
| 36 |
/*** <<< POST-INCLUDE [LogLine] >>> ***/ |
| 37 |
|
| 38 |
#include "VariablePartSet.h" |
| 39 |
|
| 40 |
/*** <<< CODE [LogLine] >>> ***/ |
| 41 |
|
| 42 |
static int |
| 43 |
memb_varsets_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, |
| 44 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 45 |
size_t size; |
| 46 |
|
| 47 |
if(!sptr) { |
| 48 |
ASN__CTFAIL(app_key, td, sptr, |
| 49 |
"%s: value not given (%s:%d)", |
| 50 |
td->name, __FILE__, __LINE__); |
| 51 |
return -1; |
| 52 |
} |
| 53 |
|
| 54 |
/* Determine the number of elements */ |
| 55 |
size = _A_CSEQUENCE_FROM_VOID(sptr)->count; |
| 56 |
|
| 57 |
if((size >= 1)) { |
| 58 |
/* Perform validation of the inner elements */ |
| 59 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 60 |
} else { |
| 61 |
ASN__CTFAIL(app_key, td, sptr, |
| 62 |
"%s: constraint failed (%s:%d)", |
| 63 |
td->name, __FILE__, __LINE__); |
| 64 |
return -1; |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
|
| 69 |
/*** <<< STAT-DEFS [LogLine] >>> ***/ |
| 70 |
|
| 71 |
static asn_TYPE_member_t asn_MBR_varsets_3[] = { |
| 72 |
{ ATF_POINTER, 0, 0, |
| 73 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 74 |
.tag_mode = 0, |
| 75 |
.type = &asn_DEF_VariablePartSet, |
| 76 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 77 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 78 |
.default_value = 0, |
| 79 |
.name = "" |
| 80 |
}, |
| 81 |
}; |
| 82 |
static const ber_tlv_tag_t asn_DEF_varsets_tags_3[] = { |
| 83 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 84 |
}; |
| 85 |
static asn_SET_OF_specifics_t asn_SPC_varsets_specs_3 = { |
| 86 |
sizeof(struct varsets), |
| 87 |
offsetof(struct varsets, _asn_ctx), |
| 88 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 89 |
}; |
| 90 |
static /* Use -fall-defs-global to expose */ |
| 91 |
asn_TYPE_descriptor_t asn_DEF_varsets_3 = { |
| 92 |
"varsets", |
| 93 |
"varsets", |
| 94 |
SEQUENCE_OF_free, |
| 95 |
SEQUENCE_OF_print, |
| 96 |
SEQUENCE_OF_constraint, |
| 97 |
SEQUENCE_OF_decode_ber, |
| 98 |
SEQUENCE_OF_encode_der, |
| 99 |
SEQUENCE_OF_decode_xer, |
| 100 |
SEQUENCE_OF_encode_xer, |
| 101 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 102 |
0, /* Use generic outmost tag fetcher */ |
| 103 |
asn_DEF_varsets_tags_3, |
| 104 |
sizeof(asn_DEF_varsets_tags_3) |
| 105 |
/sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */ |
| 106 |
asn_DEF_varsets_tags_3, /* Same as above */ |
| 107 |
sizeof(asn_DEF_varsets_tags_3) |
| 108 |
/sizeof(asn_DEF_varsets_tags_3[0]), /* 1 */ |
| 109 |
0, /* No PER visible constraints */ |
| 110 |
asn_MBR_varsets_3, |
| 111 |
1, /* Single element */ |
| 112 |
&asn_SPC_varsets_specs_3 /* Additional specs */ |
| 113 |
}; |
| 114 |
|
| 115 |
static asn_TYPE_member_t asn_MBR_LogLine_1[] = { |
| 116 |
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest), |
| 117 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 118 |
.tag_mode = 0, |
| 119 |
.type = &asn_DEF_IA5String, |
| 120 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 121 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 122 |
.default_value = 0, |
| 123 |
.name = "line-digest" |
| 124 |
}, |
| 125 |
{ ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets), |
| 126 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 127 |
.tag_mode = 0, |
| 128 |
.type = &asn_DEF_varsets_3, |
| 129 |
.memb_constraints = memb_varsets_constraint_1, |
| 130 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 131 |
.default_value = 0, |
| 132 |
.name = "varsets" |
| 133 |
}, |
| 134 |
}; |
| 135 |
static const ber_tlv_tag_t asn_DEF_LogLine_tags_1[] = { |
| 136 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 137 |
}; |
| 138 |
static const asn_TYPE_tag2member_t asn_MAP_LogLine_tag2el_1[] = { |
| 139 |
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets */ |
| 140 |
{ (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 } /* line-digest */ |
| 141 |
}; |
| 142 |
static asn_SEQUENCE_specifics_t asn_SPC_LogLine_specs_1 = { |
| 143 |
sizeof(struct LogLine), |
| 144 |
offsetof(struct LogLine, _asn_ctx), |
| 145 |
asn_MAP_LogLine_tag2el_1, |
| 146 |
2, /* Count of tags in the map */ |
| 147 |
0, 0, 0, /* Optional elements (not needed) */ |
| 148 |
1, /* Start extensions */ |
| 149 |
3 /* Stop extensions */ |
| 150 |
}; |
| 151 |
asn_TYPE_descriptor_t asn_DEF_LogLine = { |
| 152 |
"LogLine", |
| 153 |
"LogLine", |
| 154 |
SEQUENCE_free, |
| 155 |
SEQUENCE_print, |
| 156 |
SEQUENCE_constraint, |
| 157 |
SEQUENCE_decode_ber, |
| 158 |
SEQUENCE_encode_der, |
| 159 |
SEQUENCE_decode_xer, |
| 160 |
SEQUENCE_encode_xer, |
| 161 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 162 |
0, /* Use generic outmost tag fetcher */ |
| 163 |
asn_DEF_LogLine_tags_1, |
| 164 |
sizeof(asn_DEF_LogLine_tags_1) |
| 165 |
/sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */ |
| 166 |
asn_DEF_LogLine_tags_1, /* Same as above */ |
| 167 |
sizeof(asn_DEF_LogLine_tags_1) |
| 168 |
/sizeof(asn_DEF_LogLine_tags_1[0]), /* 1 */ |
| 169 |
0, /* No PER visible constraints */ |
| 170 |
asn_MBR_LogLine_1, |
| 171 |
2, /* Elements count */ |
| 172 |
&asn_SPC_LogLine_specs_1 /* Additional specs */ |
| 173 |
}; |
| 174 |
|
| 175 |
|
| 176 |
/*** <<< INCLUDES [VariablePartSet] >>> ***/ |
| 177 |
|
| 178 |
#include "ActionItem.h" |
| 179 |
#include <asn_SEQUENCE_OF.h> |
| 180 |
#include <constr_SEQUENCE_OF.h> |
| 181 |
#include <constr_SEQUENCE.h> |
| 182 |
|
| 183 |
/*** <<< FWD-DECLS [VariablePartSet] >>> ***/ |
| 184 |
|
| 185 |
struct VariablePart; |
| 186 |
|
| 187 |
/*** <<< TYPE-DECLS [VariablePartSet] >>> ***/ |
| 188 |
|
| 189 |
typedef struct VariablePartSet { |
| 190 |
struct vparts { |
| 191 |
A_SEQUENCE_OF(struct VariablePart) list; |
| 192 |
|
| 193 |
/* Context for parsing across buffer boundaries */ |
| 194 |
asn_struct_ctx_t _asn_ctx; |
| 195 |
} vparts; |
| 196 |
ActionItem_t resolution; |
| 197 |
/* |
| 198 |
* This type is extensible, |
| 199 |
* possible extensions are below. |
| 200 |
*/ |
| 201 |
|
| 202 |
/* Context for parsing across buffer boundaries */ |
| 203 |
asn_struct_ctx_t _asn_ctx; |
| 204 |
} VariablePartSet_t; |
| 205 |
|
| 206 |
/*** <<< FUNC-DECLS [VariablePartSet] >>> ***/ |
| 207 |
|
| 208 |
extern asn_TYPE_descriptor_t asn_DEF_VariablePartSet; |
| 209 |
|
| 210 |
/*** <<< POST-INCLUDE [VariablePartSet] >>> ***/ |
| 211 |
|
| 212 |
#include "VariablePart.h" |
| 213 |
|
| 214 |
/*** <<< CODE [VariablePartSet] >>> ***/ |
| 215 |
|
| 216 |
static int |
| 217 |
memb_vparts_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, |
| 218 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 219 |
|
| 220 |
if(!sptr) { |
| 221 |
ASN__CTFAIL(app_key, td, sptr, |
| 222 |
"%s: value not given (%s:%d)", |
| 223 |
td->name, __FILE__, __LINE__); |
| 224 |
return -1; |
| 225 |
} |
| 226 |
|
| 227 |
|
| 228 |
if(1 /* No applicable constraints whatsoever */) { |
| 229 |
/* Nothing is here. See below */ |
| 230 |
} |
| 231 |
|
| 232 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 233 |
} |
| 234 |
|
| 235 |
|
| 236 |
/*** <<< STAT-DEFS [VariablePartSet] >>> ***/ |
| 237 |
|
| 238 |
static asn_TYPE_member_t asn_MBR_vparts_2[] = { |
| 239 |
{ ATF_POINTER, 0, 0, |
| 240 |
.tag = -1 /* Ambiguous tag (CHOICE?) */, |
| 241 |
.tag_mode = 0, |
| 242 |
.type = &asn_DEF_VariablePart, |
| 243 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 244 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 245 |
.default_value = 0, |
| 246 |
.name = "" |
| 247 |
}, |
| 248 |
}; |
| 249 |
static const ber_tlv_tag_t asn_DEF_vparts_tags_2[] = { |
| 250 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 251 |
}; |
| 252 |
static asn_SET_OF_specifics_t asn_SPC_vparts_specs_2 = { |
| 253 |
sizeof(struct vparts), |
| 254 |
offsetof(struct vparts, _asn_ctx), |
| 255 |
2, /* XER encoding is XMLValueList */ |
| 256 |
}; |
| 257 |
static /* Use -fall-defs-global to expose */ |
| 258 |
asn_TYPE_descriptor_t asn_DEF_vparts_2 = { |
| 259 |
"vparts", |
| 260 |
"vparts", |
| 261 |
SEQUENCE_OF_free, |
| 262 |
SEQUENCE_OF_print, |
| 263 |
SEQUENCE_OF_constraint, |
| 264 |
SEQUENCE_OF_decode_ber, |
| 265 |
SEQUENCE_OF_encode_der, |
| 266 |
SEQUENCE_OF_decode_xer, |
| 267 |
SEQUENCE_OF_encode_xer, |
| 268 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 269 |
0, /* Use generic outmost tag fetcher */ |
| 270 |
asn_DEF_vparts_tags_2, |
| 271 |
sizeof(asn_DEF_vparts_tags_2) |
| 272 |
/sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */ |
| 273 |
asn_DEF_vparts_tags_2, /* Same as above */ |
| 274 |
sizeof(asn_DEF_vparts_tags_2) |
| 275 |
/sizeof(asn_DEF_vparts_tags_2[0]), /* 1 */ |
| 276 |
0, /* No PER visible constraints */ |
| 277 |
asn_MBR_vparts_2, |
| 278 |
1, /* Single element */ |
| 279 |
&asn_SPC_vparts_specs_2 /* Additional specs */ |
| 280 |
}; |
| 281 |
|
| 282 |
static asn_TYPE_member_t asn_MBR_VariablePartSet_1[] = { |
| 283 |
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts), |
| 284 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 285 |
.tag_mode = 0, |
| 286 |
.type = &asn_DEF_vparts_2, |
| 287 |
.memb_constraints = memb_vparts_constraint_1, |
| 288 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 289 |
.default_value = 0, |
| 290 |
.name = "vparts" |
| 291 |
}, |
| 292 |
{ ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution), |
| 293 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 294 |
.tag_mode = 0, |
| 295 |
.type = &asn_DEF_ActionItem, |
| 296 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 297 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 298 |
.default_value = 0, |
| 299 |
.name = "resolution" |
| 300 |
}, |
| 301 |
}; |
| 302 |
static const ber_tlv_tag_t asn_DEF_VariablePartSet_tags_1[] = { |
| 303 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 304 |
}; |
| 305 |
static const asn_TYPE_tag2member_t asn_MAP_VariablePartSet_tag2el_1[] = { |
| 306 |
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts */ |
| 307 |
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 } /* resolution */ |
| 308 |
}; |
| 309 |
static asn_SEQUENCE_specifics_t asn_SPC_VariablePartSet_specs_1 = { |
| 310 |
sizeof(struct VariablePartSet), |
| 311 |
offsetof(struct VariablePartSet, _asn_ctx), |
| 312 |
asn_MAP_VariablePartSet_tag2el_1, |
| 313 |
2, /* Count of tags in the map */ |
| 314 |
0, 0, 0, /* Optional elements (not needed) */ |
| 315 |
1, /* Start extensions */ |
| 316 |
3 /* Stop extensions */ |
| 317 |
}; |
| 318 |
asn_TYPE_descriptor_t asn_DEF_VariablePartSet = { |
| 319 |
"VariablePartSet", |
| 320 |
"VariablePartSet", |
| 321 |
SEQUENCE_free, |
| 322 |
SEQUENCE_print, |
| 323 |
SEQUENCE_constraint, |
| 324 |
SEQUENCE_decode_ber, |
| 325 |
SEQUENCE_encode_der, |
| 326 |
SEQUENCE_decode_xer, |
| 327 |
SEQUENCE_encode_xer, |
| 328 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 329 |
0, /* Use generic outmost tag fetcher */ |
| 330 |
asn_DEF_VariablePartSet_tags_1, |
| 331 |
sizeof(asn_DEF_VariablePartSet_tags_1) |
| 332 |
/sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */ |
| 333 |
asn_DEF_VariablePartSet_tags_1, /* Same as above */ |
| 334 |
sizeof(asn_DEF_VariablePartSet_tags_1) |
| 335 |
/sizeof(asn_DEF_VariablePartSet_tags_1[0]), /* 1 */ |
| 336 |
0, /* No PER visible constraints */ |
| 337 |
asn_MBR_VariablePartSet_1, |
| 338 |
2, /* Elements count */ |
| 339 |
&asn_SPC_VariablePartSet_specs_1 /* Additional specs */ |
| 340 |
}; |
| 341 |
|
| 342 |
|
| 343 |
/*** <<< INCLUDES [VariablePart] >>> ***/ |
| 344 |
|
| 345 |
#include <VisibleString.h> |
| 346 |
#include <asn_SET_OF.h> |
| 347 |
#include <constr_SET_OF.h> |
| 348 |
#include <constr_SEQUENCE.h> |
| 349 |
#include <constr_CHOICE.h> |
| 350 |
|
| 351 |
/*** <<< DEPS [VariablePart] >>> ***/ |
| 352 |
|
| 353 |
typedef enum VariablePart_PR { |
| 354 |
VariablePart_PR_NOTHING, /* No components present */ |
| 355 |
VariablePart_PR_vset, |
| 356 |
VariablePart_PR_vrange, |
| 357 |
/* Extensions may appear below */ |
| 358 |
|
| 359 |
} VariablePart_PR; |
| 360 |
|
| 361 |
/*** <<< TYPE-DECLS [VariablePart] >>> ***/ |
| 362 |
|
| 363 |
typedef struct VariablePart { |
| 364 |
VariablePart_PR present; |
| 365 |
union VariablePart_u { |
| 366 |
struct vset { |
| 367 |
A_SET_OF(VisibleString_t) list; |
| 368 |
|
| 369 |
/* Context for parsing across buffer boundaries */ |
| 370 |
asn_struct_ctx_t _asn_ctx; |
| 371 |
} vset; |
| 372 |
struct vrange { |
| 373 |
VisibleString_t from; |
| 374 |
VisibleString_t to; |
| 375 |
/* |
| 376 |
* This type is extensible, |
| 377 |
* possible extensions are below. |
| 378 |
*/ |
| 379 |
|
| 380 |
/* Context for parsing across buffer boundaries */ |
| 381 |
asn_struct_ctx_t _asn_ctx; |
| 382 |
} vrange; |
| 383 |
/* |
| 384 |
* This type is extensible, |
| 385 |
* possible extensions are below. |
| 386 |
*/ |
| 387 |
} choice; |
| 388 |
|
| 389 |
/* Context for parsing across buffer boundaries */ |
| 390 |
asn_struct_ctx_t _asn_ctx; |
| 391 |
} VariablePart_t; |
| 392 |
|
| 393 |
/*** <<< FUNC-DECLS [VariablePart] >>> ***/ |
| 394 |
|
| 395 |
extern asn_TYPE_descriptor_t asn_DEF_VariablePart; |
| 396 |
|
| 397 |
/*** <<< CODE [VariablePart] >>> ***/ |
| 398 |
|
| 399 |
static int |
| 400 |
memb_vset_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, |
| 401 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 402 |
size_t size; |
| 403 |
|
| 404 |
if(!sptr) { |
| 405 |
ASN__CTFAIL(app_key, td, sptr, |
| 406 |
"%s: value not given (%s:%d)", |
| 407 |
td->name, __FILE__, __LINE__); |
| 408 |
return -1; |
| 409 |
} |
| 410 |
|
| 411 |
/* Determine the number of elements */ |
| 412 |
size = _A_CSET_FROM_VOID(sptr)->count; |
| 413 |
|
| 414 |
if((size >= 1)) { |
| 415 |
/* Perform validation of the inner elements */ |
| 416 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 417 |
} else { |
| 418 |
ASN__CTFAIL(app_key, td, sptr, |
| 419 |
"%s: constraint failed (%s:%d)", |
| 420 |
td->name, __FILE__, __LINE__); |
| 421 |
return -1; |
| 422 |
} |
| 423 |
} |
| 424 |
|
| 425 |
|
| 426 |
/*** <<< STAT-DEFS [VariablePart] >>> ***/ |
| 427 |
|
| 428 |
static asn_TYPE_member_t asn_MBR_vset_2[] = { |
| 429 |
{ ATF_POINTER, 0, 0, |
| 430 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 431 |
.tag_mode = 0, |
| 432 |
.type = &asn_DEF_VisibleString, |
| 433 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 434 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 435 |
.default_value = 0, |
| 436 |
.name = "" |
| 437 |
}, |
| 438 |
}; |
| 439 |
static const ber_tlv_tag_t asn_DEF_vset_tags_2[] = { |
| 440 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 441 |
}; |
| 442 |
static asn_SET_OF_specifics_t asn_SPC_vset_specs_2 = { |
| 443 |
sizeof(struct vset), |
| 444 |
offsetof(struct vset, _asn_ctx), |
| 445 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 446 |
}; |
| 447 |
static /* Use -fall-defs-global to expose */ |
| 448 |
asn_TYPE_descriptor_t asn_DEF_vset_2 = { |
| 449 |
"vset", |
| 450 |
"vset", |
| 451 |
SET_OF_free, |
| 452 |
SET_OF_print, |
| 453 |
SET_OF_constraint, |
| 454 |
SET_OF_decode_ber, |
| 455 |
SET_OF_encode_der, |
| 456 |
SET_OF_decode_xer, |
| 457 |
SET_OF_encode_xer, |
| 458 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 459 |
0, /* Use generic outmost tag fetcher */ |
| 460 |
asn_DEF_vset_tags_2, |
| 461 |
sizeof(asn_DEF_vset_tags_2) |
| 462 |
/sizeof(asn_DEF_vset_tags_2[0]), /* 1 */ |
| 463 |
asn_DEF_vset_tags_2, /* Same as above */ |
| 464 |
sizeof(asn_DEF_vset_tags_2) |
| 465 |
/sizeof(asn_DEF_vset_tags_2[0]), /* 1 */ |
| 466 |
0, /* No PER visible constraints */ |
| 467 |
asn_MBR_vset_2, |
| 468 |
1, /* Single element */ |
| 469 |
&asn_SPC_vset_specs_2 /* Additional specs */ |
| 470 |
}; |
| 471 |
|
| 472 |
static asn_TYPE_member_t asn_MBR_vrange_4[] = { |
| 473 |
{ ATF_NOFLAGS, 0, offsetof(struct vrange, from), |
| 474 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 475 |
.tag_mode = 0, |
| 476 |
.type = &asn_DEF_VisibleString, |
| 477 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 478 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 479 |
.default_value = 0, |
| 480 |
.name = "from" |
| 481 |
}, |
| 482 |
{ ATF_NOFLAGS, 0, offsetof(struct vrange, to), |
| 483 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 484 |
.tag_mode = 0, |
| 485 |
.type = &asn_DEF_VisibleString, |
| 486 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 487 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 488 |
.default_value = 0, |
| 489 |
.name = "to" |
| 490 |
}, |
| 491 |
}; |
| 492 |
static const ber_tlv_tag_t asn_DEF_vrange_tags_4[] = { |
| 493 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 494 |
}; |
| 495 |
static const asn_TYPE_tag2member_t asn_MAP_vrange_tag2el_4[] = { |
| 496 |
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from */ |
| 497 |
{ (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 } /* to */ |
| 498 |
}; |
| 499 |
static asn_SEQUENCE_specifics_t asn_SPC_vrange_specs_4 = { |
| 500 |
sizeof(struct vrange), |
| 501 |
offsetof(struct vrange, _asn_ctx), |
| 502 |
asn_MAP_vrange_tag2el_4, |
| 503 |
2, /* Count of tags in the map */ |
| 504 |
0, 0, 0, /* Optional elements (not needed) */ |
| 505 |
1, /* Start extensions */ |
| 506 |
3 /* Stop extensions */ |
| 507 |
}; |
| 508 |
static /* Use -fall-defs-global to expose */ |
| 509 |
asn_TYPE_descriptor_t asn_DEF_vrange_4 = { |
| 510 |
"vrange", |
| 511 |
"vrange", |
| 512 |
SEQUENCE_free, |
| 513 |
SEQUENCE_print, |
| 514 |
SEQUENCE_constraint, |
| 515 |
SEQUENCE_decode_ber, |
| 516 |
SEQUENCE_encode_der, |
| 517 |
SEQUENCE_decode_xer, |
| 518 |
SEQUENCE_encode_xer, |
| 519 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 520 |
0, /* Use generic outmost tag fetcher */ |
| 521 |
asn_DEF_vrange_tags_4, |
| 522 |
sizeof(asn_DEF_vrange_tags_4) |
| 523 |
/sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */ |
| 524 |
asn_DEF_vrange_tags_4, /* Same as above */ |
| 525 |
sizeof(asn_DEF_vrange_tags_4) |
| 526 |
/sizeof(asn_DEF_vrange_tags_4[0]), /* 1 */ |
| 527 |
0, /* No PER visible constraints */ |
| 528 |
asn_MBR_vrange_4, |
| 529 |
2, /* Elements count */ |
| 530 |
&asn_SPC_vrange_specs_4 /* Additional specs */ |
| 531 |
}; |
| 532 |
|
| 533 |
static asn_TYPE_member_t asn_MBR_VariablePart_1[] = { |
| 534 |
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset), |
| 535 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 536 |
.tag_mode = 0, |
| 537 |
.type = &asn_DEF_vset_2, |
| 538 |
.memb_constraints = memb_vset_constraint_1, |
| 539 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 540 |
.default_value = 0, |
| 541 |
.name = "vset" |
| 542 |
}, |
| 543 |
{ ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange), |
| 544 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 545 |
.tag_mode = 0, |
| 546 |
.type = &asn_DEF_vrange_4, |
| 547 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 548 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 549 |
.default_value = 0, |
| 550 |
.name = "vrange" |
| 551 |
}, |
| 552 |
}; |
| 553 |
static const asn_TYPE_tag2member_t asn_MAP_VariablePart_tag2el_1[] = { |
| 554 |
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange */ |
| 555 |
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 } /* vset */ |
| 556 |
}; |
| 557 |
static asn_CHOICE_specifics_t asn_SPC_VariablePart_specs_1 = { |
| 558 |
sizeof(struct VariablePart), |
| 559 |
offsetof(struct VariablePart, _asn_ctx), |
| 560 |
offsetof(struct VariablePart, present), |
| 561 |
sizeof(((struct VariablePart *)0)->present), |
| 562 |
asn_MAP_VariablePart_tag2el_1, |
| 563 |
2, /* Count of tags in the map */ |
| 564 |
.canonical_order = 0, |
| 565 |
.ext_start = 2 /* Extensions start */ |
| 566 |
}; |
| 567 |
asn_TYPE_descriptor_t asn_DEF_VariablePart = { |
| 568 |
"VariablePart", |
| 569 |
"VariablePart", |
| 570 |
CHOICE_free, |
| 571 |
CHOICE_print, |
| 572 |
CHOICE_constraint, |
| 573 |
CHOICE_decode_ber, |
| 574 |
CHOICE_encode_der, |
| 575 |
CHOICE_decode_xer, |
| 576 |
CHOICE_encode_xer, |
| 577 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 578 |
CHOICE_outmost_tag, |
| 579 |
0, /* No effective tags (pointer) */ |
| 580 |
0, /* No effective tags (count) */ |
| 581 |
0, /* No tags (pointer) */ |
| 582 |
0, /* No tags (count) */ |
| 583 |
0, /* No PER visible constraints */ |
| 584 |
asn_MBR_VariablePart_1, |
| 585 |
2, /* Elements count */ |
| 586 |
&asn_SPC_VariablePart_specs_1 /* Additional specs */ |
| 587 |
}; |
| 588 |
|
| 589 |
|
| 590 |
/*** <<< INCLUDES [ActionItem] >>> ***/ |
| 591 |
|
| 592 |
#include <NativeEnumerated.h> |
| 593 |
#include <BOOLEAN.h> |
| 594 |
#include <VisibleString.h> |
| 595 |
#include <asn_SET_OF.h> |
| 596 |
#include <constr_SET_OF.h> |
| 597 |
#include <constr_SEQUENCE.h> |
| 598 |
|
| 599 |
/*** <<< DEPS [ActionItem] >>> ***/ |
| 600 |
|
| 601 |
typedef enum accept_as { |
| 602 |
accept_as_unknown = 0, |
| 603 |
accept_as_safe = 1, |
| 604 |
accept_as_unsafe = 2 |
| 605 |
/* |
| 606 |
* Enumeration is extensible |
| 607 |
*/ |
| 608 |
} e_accept_as; |
| 609 |
|
| 610 |
/*** <<< TYPE-DECLS [ActionItem] >>> ***/ |
| 611 |
|
| 612 |
typedef struct ActionItem { |
| 613 |
long accept_as; |
| 614 |
struct notify { |
| 615 |
BOOLEAN_t critical; |
| 616 |
struct email { |
| 617 |
A_SET_OF(VisibleString_t) list; |
| 618 |
|
| 619 |
/* Context for parsing across buffer boundaries */ |
| 620 |
asn_struct_ctx_t _asn_ctx; |
| 621 |
} email; |
| 622 |
/* |
| 623 |
* This type is extensible, |
| 624 |
* possible extensions are below. |
| 625 |
*/ |
| 626 |
|
| 627 |
/* Context for parsing across buffer boundaries */ |
| 628 |
asn_struct_ctx_t _asn_ctx; |
| 629 |
} *notify; |
| 630 |
/* |
| 631 |
* This type is extensible, |
| 632 |
* possible extensions are below. |
| 633 |
*/ |
| 634 |
|
| 635 |
/* Context for parsing across buffer boundaries */ |
| 636 |
asn_struct_ctx_t _asn_ctx; |
| 637 |
} ActionItem_t; |
| 638 |
|
| 639 |
/*** <<< FUNC-DECLS [ActionItem] >>> ***/ |
| 640 |
|
| 641 |
/* extern asn_TYPE_descriptor_t asn_DEF_accept_as_2; // (Use -fall-defs-global to expose) */ |
| 642 |
extern asn_TYPE_descriptor_t asn_DEF_ActionItem; |
| 643 |
|
| 644 |
/*** <<< CODE [ActionItem] >>> ***/ |
| 645 |
|
| 646 |
static int |
| 647 |
accept_as_2_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 648 |
asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 649 |
/* Replace with underlying type checker */ |
| 650 |
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; |
| 651 |
return td->check_constraints(td, sptr, ctfailcb, app_key); |
| 652 |
} |
| 653 |
|
| 654 |
/* |
| 655 |
* This type is implemented using NativeEnumerated, |
| 656 |
* so here we adjust the DEF accordingly. |
| 657 |
*/ |
| 658 |
static void |
| 659 |
accept_as_2_inherit_TYPE_descriptor(asn_TYPE_descriptor_t *td) { |
| 660 |
td->free_struct = asn_DEF_NativeEnumerated.free_struct; |
| 661 |
td->print_struct = asn_DEF_NativeEnumerated.print_struct; |
| 662 |
td->check_constraints = asn_DEF_NativeEnumerated.check_constraints; |
| 663 |
td->ber_decoder = asn_DEF_NativeEnumerated.ber_decoder; |
| 664 |
td->der_encoder = asn_DEF_NativeEnumerated.der_encoder; |
| 665 |
td->xer_decoder = asn_DEF_NativeEnumerated.xer_decoder; |
| 666 |
td->xer_encoder = asn_DEF_NativeEnumerated.xer_encoder; |
| 667 |
td->uper_decoder = asn_DEF_NativeEnumerated.uper_decoder; |
| 668 |
td->uper_encoder = asn_DEF_NativeEnumerated.uper_encoder; |
| 669 |
if(!td->per_constraints) |
| 670 |
td->per_constraints = asn_DEF_NativeEnumerated.per_constraints; |
| 671 |
td->elements = asn_DEF_NativeEnumerated.elements; |
| 672 |
td->elements_count = asn_DEF_NativeEnumerated.elements_count; |
| 673 |
/* td->specifics = asn_DEF_NativeEnumerated.specifics; // Defined explicitly */ |
| 674 |
} |
| 675 |
|
| 676 |
static void |
| 677 |
accept_as_2_free(asn_TYPE_descriptor_t *td, |
| 678 |
void *struct_ptr, int contents_only) { |
| 679 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 680 |
td->free_struct(td, struct_ptr, contents_only); |
| 681 |
} |
| 682 |
|
| 683 |
static int |
| 684 |
accept_as_2_print(asn_TYPE_descriptor_t *td, const void *struct_ptr, |
| 685 |
int ilevel, asn_app_consume_bytes_f *cb, void *app_key) { |
| 686 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 687 |
return td->print_struct(td, struct_ptr, ilevel, cb, app_key); |
| 688 |
} |
| 689 |
|
| 690 |
static asn_dec_rval_t |
| 691 |
accept_as_2_decode_ber(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 692 |
void **structure, const void *bufptr, size_t size, int tag_mode) { |
| 693 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 694 |
return td->ber_decoder(opt_codec_ctx, td, structure, bufptr, size, tag_mode); |
| 695 |
} |
| 696 |
|
| 697 |
static asn_enc_rval_t |
| 698 |
accept_as_2_encode_der(asn_TYPE_descriptor_t *td, |
| 699 |
void *structure, int tag_mode, ber_tlv_tag_t tag, |
| 700 |
asn_app_consume_bytes_f *cb, void *app_key) { |
| 701 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 702 |
return td->der_encoder(td, structure, tag_mode, tag, cb, app_key); |
| 703 |
} |
| 704 |
|
| 705 |
static asn_dec_rval_t |
| 706 |
accept_as_2_decode_xer(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td, |
| 707 |
void **structure, const char *opt_mname, const void *bufptr, size_t size) { |
| 708 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 709 |
return td->xer_decoder(opt_codec_ctx, td, structure, opt_mname, bufptr, size); |
| 710 |
} |
| 711 |
|
| 712 |
static asn_enc_rval_t |
| 713 |
accept_as_2_encode_xer(asn_TYPE_descriptor_t *td, void *structure, |
| 714 |
int ilevel, enum xer_encoder_flags_e flags, |
| 715 |
asn_app_consume_bytes_f *cb, void *app_key) { |
| 716 |
accept_as_2_inherit_TYPE_descriptor(td); |
| 717 |
return td->xer_encoder(td, structure, ilevel, flags, cb, app_key); |
| 718 |
} |
| 719 |
|
| 720 |
|
| 721 |
/*** <<< STAT-DEFS [ActionItem] >>> ***/ |
| 722 |
|
| 723 |
static const asn_INTEGER_enum_map_t asn_MAP_accept_as_value2enum_2[] = { |
| 724 |
{ 0, 7, "unknown" }, |
| 725 |
{ 1, 4, "safe" }, |
| 726 |
{ 2, 6, "unsafe" } |
| 727 |
/* This list is extensible */ |
| 728 |
}; |
| 729 |
static const unsigned int asn_MAP_accept_as_enum2value_2[] = { |
| 730 |
1, /* safe(1) */ |
| 731 |
0, /* unknown(0) */ |
| 732 |
2 /* unsafe(2) */ |
| 733 |
/* This list is extensible */ |
| 734 |
}; |
| 735 |
static const asn_INTEGER_specifics_t asn_SPC_accept_as_specs_2 = { |
| 736 |
asn_MAP_accept_as_value2enum_2, /* "tag" => N; sorted by tag */ |
| 737 |
asn_MAP_accept_as_enum2value_2, /* N => "tag"; sorted by N */ |
| 738 |
3, /* Number of elements in the maps */ |
| 739 |
4, /* Extensions before this member */ |
| 740 |
1, /* Strict enumeration */ |
| 741 |
0, /* Native long size */ |
| 742 |
0 |
| 743 |
}; |
| 744 |
static const ber_tlv_tag_t asn_DEF_accept_as_tags_2[] = { |
| 745 |
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 746 |
}; |
| 747 |
static /* Use -fall-defs-global to expose */ |
| 748 |
asn_TYPE_descriptor_t asn_DEF_accept_as_2 = { |
| 749 |
"accept-as", |
| 750 |
"accept-as", |
| 751 |
accept_as_2_free, |
| 752 |
accept_as_2_print, |
| 753 |
accept_as_2_constraint, |
| 754 |
accept_as_2_decode_ber, |
| 755 |
accept_as_2_encode_der, |
| 756 |
accept_as_2_decode_xer, |
| 757 |
accept_as_2_encode_xer, |
| 758 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 759 |
0, /* Use generic outmost tag fetcher */ |
| 760 |
asn_DEF_accept_as_tags_2, |
| 761 |
sizeof(asn_DEF_accept_as_tags_2) |
| 762 |
/sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */ |
| 763 |
asn_DEF_accept_as_tags_2, /* Same as above */ |
| 764 |
sizeof(asn_DEF_accept_as_tags_2) |
| 765 |
/sizeof(asn_DEF_accept_as_tags_2[0]), /* 1 */ |
| 766 |
0, /* No PER visible constraints */ |
| 767 |
0, 0, /* Defined elsewhere */ |
| 768 |
&asn_SPC_accept_as_specs_2 /* Additional specs */ |
| 769 |
}; |
| 770 |
|
| 771 |
static asn_TYPE_member_t asn_MBR_email_9[] = { |
| 772 |
{ ATF_POINTER, 0, 0, |
| 773 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 774 |
.tag_mode = 0, |
| 775 |
.type = &asn_DEF_VisibleString, |
| 776 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 777 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 778 |
.default_value = 0, |
| 779 |
.name = "" |
| 780 |
}, |
| 781 |
}; |
| 782 |
static const ber_tlv_tag_t asn_DEF_email_tags_9[] = { |
| 783 |
(ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 784 |
}; |
| 785 |
static asn_SET_OF_specifics_t asn_SPC_email_specs_9 = { |
| 786 |
sizeof(struct email), |
| 787 |
offsetof(struct email, _asn_ctx), |
| 788 |
0, /* XER encoding is XMLDelimitedItemList */ |
| 789 |
}; |
| 790 |
static /* Use -fall-defs-global to expose */ |
| 791 |
asn_TYPE_descriptor_t asn_DEF_email_9 = { |
| 792 |
"email", |
| 793 |
"email", |
| 794 |
SET_OF_free, |
| 795 |
SET_OF_print, |
| 796 |
SET_OF_constraint, |
| 797 |
SET_OF_decode_ber, |
| 798 |
SET_OF_encode_der, |
| 799 |
SET_OF_decode_xer, |
| 800 |
SET_OF_encode_xer, |
| 801 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 802 |
0, /* Use generic outmost tag fetcher */ |
| 803 |
asn_DEF_email_tags_9, |
| 804 |
sizeof(asn_DEF_email_tags_9) |
| 805 |
/sizeof(asn_DEF_email_tags_9[0]), /* 1 */ |
| 806 |
asn_DEF_email_tags_9, /* Same as above */ |
| 807 |
sizeof(asn_DEF_email_tags_9) |
| 808 |
/sizeof(asn_DEF_email_tags_9[0]), /* 1 */ |
| 809 |
0, /* No PER visible constraints */ |
| 810 |
asn_MBR_email_9, |
| 811 |
1, /* Single element */ |
| 812 |
&asn_SPC_email_specs_9 /* Additional specs */ |
| 813 |
}; |
| 814 |
|
| 815 |
static asn_TYPE_member_t asn_MBR_notify_7[] = { |
| 816 |
{ ATF_NOFLAGS, 0, offsetof(struct notify, critical), |
| 817 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 818 |
.tag_mode = 0, |
| 819 |
.type = &asn_DEF_BOOLEAN, |
| 820 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 821 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 822 |
.default_value = 0, |
| 823 |
.name = "critical" |
| 824 |
}, |
| 825 |
{ ATF_NOFLAGS, 0, offsetof(struct notify, email), |
| 826 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 827 |
.tag_mode = 0, |
| 828 |
.type = &asn_DEF_email_9, |
| 829 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 830 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 831 |
.default_value = 0, |
| 832 |
.name = "email" |
| 833 |
}, |
| 834 |
}; |
| 835 |
static const ber_tlv_tag_t asn_DEF_notify_tags_7[] = { |
| 836 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 837 |
}; |
| 838 |
static const asn_TYPE_tag2member_t asn_MAP_notify_tag2el_7[] = { |
| 839 |
{ (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical */ |
| 840 |
{ (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 } /* email */ |
| 841 |
}; |
| 842 |
static asn_SEQUENCE_specifics_t asn_SPC_notify_specs_7 = { |
| 843 |
sizeof(struct notify), |
| 844 |
offsetof(struct notify, _asn_ctx), |
| 845 |
asn_MAP_notify_tag2el_7, |
| 846 |
2, /* Count of tags in the map */ |
| 847 |
0, 0, 0, /* Optional elements (not needed) */ |
| 848 |
1, /* Start extensions */ |
| 849 |
3 /* Stop extensions */ |
| 850 |
}; |
| 851 |
static /* Use -fall-defs-global to expose */ |
| 852 |
asn_TYPE_descriptor_t asn_DEF_notify_7 = { |
| 853 |
"notify", |
| 854 |
"notify", |
| 855 |
SEQUENCE_free, |
| 856 |
SEQUENCE_print, |
| 857 |
SEQUENCE_constraint, |
| 858 |
SEQUENCE_decode_ber, |
| 859 |
SEQUENCE_encode_der, |
| 860 |
SEQUENCE_decode_xer, |
| 861 |
SEQUENCE_encode_xer, |
| 862 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 863 |
0, /* Use generic outmost tag fetcher */ |
| 864 |
asn_DEF_notify_tags_7, |
| 865 |
sizeof(asn_DEF_notify_tags_7) |
| 866 |
/sizeof(asn_DEF_notify_tags_7[0]), /* 1 */ |
| 867 |
asn_DEF_notify_tags_7, /* Same as above */ |
| 868 |
sizeof(asn_DEF_notify_tags_7) |
| 869 |
/sizeof(asn_DEF_notify_tags_7[0]), /* 1 */ |
| 870 |
0, /* No PER visible constraints */ |
| 871 |
asn_MBR_notify_7, |
| 872 |
2, /* Elements count */ |
| 873 |
&asn_SPC_notify_specs_7 /* Additional specs */ |
| 874 |
}; |
| 875 |
|
| 876 |
static asn_TYPE_member_t asn_MBR_ActionItem_1[] = { |
| 877 |
{ ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as), |
| 878 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 879 |
.tag_mode = 0, |
| 880 |
.type = &asn_DEF_accept_as_2, |
| 881 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 882 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 883 |
.default_value = 0, |
| 884 |
.name = "accept-as" |
| 885 |
}, |
| 886 |
{ ATF_POINTER, 1, offsetof(struct ActionItem, notify), |
| 887 |
.tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 888 |
.tag_mode = 0, |
| 889 |
.type = &asn_DEF_notify_7, |
| 890 |
.memb_constraints = 0, /* Defer constraints checking to the member type */ |
| 891 |
.per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 892 |
.default_value = 0, |
| 893 |
.name = "notify" |
| 894 |
}, |
| 895 |
}; |
| 896 |
static const ber_tlv_tag_t asn_DEF_ActionItem_tags_1[] = { |
| 897 |
(ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 898 |
}; |
| 899 |
static const asn_TYPE_tag2member_t asn_MAP_ActionItem_tag2el_1[] = { |
| 900 |
{ (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as */ |
| 901 |
{ (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 } /* notify */ |
| 902 |
}; |
| 903 |
static asn_SEQUENCE_specifics_t asn_SPC_ActionItem_specs_1 = { |
| 904 |
sizeof(struct ActionItem), |
| 905 |
offsetof(struct ActionItem, _asn_ctx), |
| 906 |
asn_MAP_ActionItem_tag2el_1, |
| 907 |
2, /* Count of tags in the map */ |
| 908 |
0, 0, 0, /* Optional elements (not needed) */ |
| 909 |
1, /* Start extensions */ |
| 910 |
3 /* Stop extensions */ |
| 911 |
}; |
| 912 |
asn_TYPE_descriptor_t asn_DEF_ActionItem = { |
| 913 |
"ActionItem", |
| 914 |
"ActionItem", |
| 915 |
SEQUENCE_free, |
| 916 |
SEQUENCE_print, |
| 917 |
SEQUENCE_constraint, |
| 918 |
SEQUENCE_decode_ber, |
| 919 |
SEQUENCE_encode_der, |
| 920 |
SEQUENCE_decode_xer, |
| 921 |
SEQUENCE_encode_xer, |
| 922 |
0, 0, /* No PER support, use "-gen-PER" to enable */ |
| 923 |
0, /* Use generic outmost tag fetcher */ |
| 924 |
asn_DEF_ActionItem_tags_1, |
| 925 |
sizeof(asn_DEF_ActionItem_tags_1) |
| 926 |
/sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */ |
| 927 |
asn_DEF_ActionItem_tags_1, /* Same as above */ |
| 928 |
sizeof(asn_DEF_ActionItem_tags_1) |
| 929 |
/sizeof(asn_DEF_ActionItem_tags_1[0]), /* 1 */ |
| 930 |
0, /* No PER visible constraints */ |
| 931 |
asn_MBR_ActionItem_1, |
| 932 |
2, /* Elements count */ |
| 933 |
&asn_SPC_ActionItem_specs_1 /* Additional specs */ |
| 934 |
}; |
| 935 |
|