~ubuntu-branches/ubuntu/dapper/asn1c/dapper

« back to all changes in this revision

Viewing changes to skeletons/ENUMERATED.c

  • Committer: Bazaar Package Importer
  • Author(s): W. Borgert
  • Date: 2005-05-28 12:36:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050528123642-3h6kstws5u0xcovl
Tags: upstream-0.9.14
ImportĀ upstreamĀ versionĀ 0.9.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-
 
2
 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
 
3
 * Redistribution and modifications are permitted subject to BSD license.
 
4
 */
 
5
#include <asn_internal.h>
 
6
#include <ENUMERATED.h>
 
7
#include <asn_codecs_prim.h>    /* Encoder and decoder of a primitive type */
 
8
 
 
9
/*
 
10
 * ENUMERATED basic type description.
 
11
 */
 
12
static ber_tlv_tag_t asn_DEF_ENUMERATED_tags[] = {
 
13
        (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
 
14
};
 
15
asn_TYPE_descriptor_t asn_DEF_ENUMERATED = {
 
16
        "ENUMERATED",
 
17
        "ENUMERATED",
 
18
        ASN__PRIMITIVE_TYPE_free,
 
19
        INTEGER_print,                  /* Implemented in terms of INTEGER */
 
20
        asn_generic_no_constraint,
 
21
        ber_decode_primitive,
 
22
        INTEGER_encode_der,             /* Implemented in terms of INTEGER */
 
23
        INTEGER_decode_xer,     /* This is temporary! */
 
24
        INTEGER_encode_xer,
 
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 */
 
31
        0       /* No specifics */
 
32
};
 
33