asn1c/skeletons/ENUMERATED.c

34 lines
1.1 KiB
C
Raw Normal View History

2004-06-03 03:38:44 +00:00
/*-
* Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
* Redistribution and modifications are permitted subject to BSD license.
*/
2004-09-22 16:06:28 +00:00
#include <asn_internal.h>
2004-06-03 03:38:44 +00:00
#include <ENUMERATED.h>
2004-10-21 11:22:12 +00:00
#include <asn_codecs_prim.h> /* Encoder and decoder of a primitive type */
2004-06-03 03:38:44 +00:00
/*
* ENUMERATED basic type description.
*/
2004-09-29 13:26:15 +00:00
static ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = {
2004-06-03 03:38:44 +00:00
(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
2004-09-29 13:26:15 +00:00
asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
2004-10-20 15:50:55 +00:00
"ENUMERATED",
2004-06-03 03:38:44 +00:00
"ENUMERATED",
ASN__PRIMITIVE_TYPE_free,
2004-09-22 16:06:28 +00:00
INTEGER_print, /* Implemented in terms of INTEGER */
2004-06-03 03:38:44 +00:00
asn_generic_no_constraint,
ber_decode_primitive,
2004-06-03 03:38:44 +00:00
INTEGER_encode_der, /* Implemented in terms of INTEGER */
2004-09-22 16:06:28 +00:00
0, /* Not implemented yet */
INTEGER_encode_xer, /* Implemented in terms of INTEGER */
2004-06-03 03:38:44 +00:00
0, /* Use generic outmost tag fetcher */
2004-09-29 13:26:15 +00:00
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]),
2004-08-20 13:23:42 +00:00
0, 0, /* No members */
2004-06-05 08:17:50 +00:00
0 /* No specifics */
2004-06-03 03:38:44 +00:00
};