| /*- | |
| * Copyright (c) 2003, 2005, 2006 Lev Walkin <vlm@lionet.info>. | |
| * All rights reserved. | |
| * Redistribution and modifications are permitted subject to BSD license. | |
| */ | |
| /* | |
| * ENUMERATED basic type description. | |
| */ | |
| static const ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = { | |
| (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) | |
| }; | |
| asn_TYPE_operation_t asn_OP_ENUMERATED = { | |
| ASN__PRIMITIVE_TYPE_free, | |
| INTEGER_print, /* Implemented in terms of INTEGER */ | |
| 0, | |
| INTEGER_compare, /* Implemented in terms of INTEGER */ | |
| INTEGER_copy, /* Implemented in terms of INTEGER */ | |
| ber_decode_primitive, | |
| INTEGER_encode_der, /* Implemented in terms of INTEGER */ | |
| 0, | |
| 0, | |
| INTEGER_decode_xer, /* This is temporary! */ | |
| INTEGER_encode_xer, | |
| 0, | |
| 0, | |
| ENUMERATED_decode_jer, | |
| INTEGER_encode_jer, | |
| 0, | |
| 0, | |
| ENUMERATED_decode_oer, | |
| ENUMERATED_encode_oer, | |
| 0, | |
| 0, | |
| ENUMERATED_decode_uper, /* Unaligned PER decoder */ | |
| ENUMERATED_encode_uper, /* Unaligned PER encoder */ | |
| 0, | |
| 0, | |
| ENUMERATED_decode_aper, /* Aligned PER decoder */ | |
| ENUMERATED_encode_aper, /* Aligned PER encoder */ | |
| 0, | |
| 0, | |
| ENUMERATED_random_fill, | |
| 0, | |
| 0 /* Use generic outmost tag fetcher */ | |
| }; | |
| asn_TYPE_descriptor_t asn_DEF_ENUMERATED = { | |
| "ENUMERATED", | |
| "ENUMERATED", | |
| &asn_OP_ENUMERATED, | |
| asn_DEF_ENUMERATED_tags, | |
| sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]), | |
| asn_DEF_ENUMERATED_tags, /* Same as above */ | |
| sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]), | |
| { | |
| 0, | |
| 0, | |
| asn_generic_no_constraint | |
| }, | |
| 0, 0, /* No members */ | |
| 0 /* No specifics */ | |
| }; | |