2
* Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3
* Redistribution and modifications are permitted subject to BSD license.
5
#include <asn_internal.h>
6
#include <ENUMERATED.h>
7
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
10
* ENUMERATED basic type description.
12
static ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = {
13
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
15
asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
18
ASN__PRIMITIVE_TYPE_free,
19
INTEGER_print, /* Implemented in terms of INTEGER */
20
asn_generic_no_constraint,
22
INTEGER_encode_der, /* Implemented in terms of INTEGER */
23
INTEGER_decode_xer, /* This is temporary! */
25
0, /* Use generic outmost tag fetcher */
26
asn_DEF_ENUMERATED_tags,
27
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
28
asn_DEF_ENUMERATED_tags, /* Same as above */
29
sizeof(asn_DEF_ENUMERATED_tags) / sizeof(asn_DEF_ENUMERATED_tags[0]),
30
0, 0, /* No members */