| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef _INTEGER_H_ |
| 6 |
#define _INTEGER_H_ |
| 7 |
|
| 8 |
#include <asn_application.h> |
| 9 |
#include <asn_codecs_prim.h> |
| 10 |
|
| 11 |
#ifdef __cplusplus |
| 12 |
extern "C" { |
| 13 |
#endif |
| 14 |
|
| 15 |
typedef ASN__PRIMITIVE_TYPE_t INTEGER_t; |
| 16 |
|
| 17 |
extern asn_TYPE_descriptor_t asn_DEF_INTEGER; |
| 18 |
|
| 19 |
|
| 20 |
typedef struct asn_INTEGER_enum_map_s { |
| 21 |
long nat_value; |
| 22 |
size_t enum_len; |
| 23 |
const char *enum_name; |
| 24 |
} asn_INTEGER_enum_map_t; |
| 25 |
|
| 26 |
|
| 27 |
typedef struct asn_INTEGER_specifics_s { |
| 28 |
asn_INTEGER_enum_map_t *value2enum; |
| 29 |
unsigned int *enum2value; |
| 30 |
int map_count; |
| 31 |
int extension; |
| 32 |
int strict_enumeration; |
| 33 |
int field_width; |
| 34 |
int field_unsigned; |
| 35 |
} asn_INTEGER_specifics_t; |
| 36 |
|
| 37 |
asn_struct_print_f INTEGER_print; |
| 38 |
ber_type_decoder_f INTEGER_decode_ber; |
| 39 |
der_type_encoder_f INTEGER_encode_der; |
| 40 |
xer_type_decoder_f INTEGER_decode_xer; |
| 41 |
xer_type_encoder_f INTEGER_encode_xer; |
| 42 |
per_type_decoder_f INTEGER_decode_uper; |
| 43 |
per_type_encoder_f INTEGER_encode_uper; |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
int asn_INTEGER2long(const INTEGER_t *i, long *l); |
| 56 |
int asn_INTEGER2ulong(const INTEGER_t *i, unsigned long *l); |
| 57 |
int asn_long2INTEGER(INTEGER_t *i, long l); |
| 58 |
int asn_ulong2INTEGER(INTEGER_t *i, unsigned long l); |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
const asn_INTEGER_enum_map_t *INTEGER_map_value2enum(asn_INTEGER_specifics_t *specs, long value); |
| 64 |
|
| 65 |
#ifdef __cplusplus |
| 66 |
} |
| 67 |
#endif |
| 68 |
|
| 69 |
#endif |