ITS
ManagementContainer.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
3  * From ASN.1 module "DENM-PDU-Descriptions"
4  * found in "DENM.asn"
5  */
6 
7 #include "ManagementContainer.h"
8 
9 static int asn_DFL_9_set_600(int set_value, void **sptr) {
10  ValidityDuration_t *st = *sptr;
11 
12  if(!st) {
13  if(!set_value) return -1; /* Not a default value */
14  st = (*sptr = CALLOC(1, sizeof(*st)));
15  if(!st) return -1;
16  }
17 
18  if(set_value) {
19  /* Install default value 600 */
20  *st = 600;
21  return 0;
22  } else {
23  /* Test default value 600 */
24  return (*st == 600);
25  }
26 }
28  { ATF_NOFLAGS, 0, offsetof(struct ManagementContainer, actionID),
29  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
30  -1, /* IMPLICIT tag at current level */
32  0, /* Defer constraints checking to the member type */
33  0, /* No PER visible constraints */
34  0,
35  "actionID"
36  },
37  { ATF_NOFLAGS, 0, offsetof(struct ManagementContainer, detectionTime),
38  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
39  -1, /* IMPLICIT tag at current level */
41  0, /* Defer constraints checking to the member type */
42  0, /* No PER visible constraints */
43  0,
44  "detectionTime"
45  },
46  { ATF_NOFLAGS, 0, offsetof(struct ManagementContainer, referenceTime),
47  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
48  -1, /* IMPLICIT tag at current level */
50  0, /* Defer constraints checking to the member type */
51  0, /* No PER visible constraints */
52  0,
53  "referenceTime"
54  },
55  { ATF_POINTER, 1, offsetof(struct ManagementContainer, termination),
56  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
57  -1, /* IMPLICIT tag at current level */
59  0, /* Defer constraints checking to the member type */
60  0, /* No PER visible constraints */
61  0,
62  "termination"
63  },
64  { ATF_NOFLAGS, 0, offsetof(struct ManagementContainer, eventPosition),
65  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
66  -1, /* IMPLICIT tag at current level */
68  0, /* Defer constraints checking to the member type */
69  0, /* No PER visible constraints */
70  0,
71  "eventPosition"
72  },
73  { ATF_POINTER, 4, offsetof(struct ManagementContainer, relevanceDistance),
74  (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
75  -1, /* IMPLICIT tag at current level */
77  0, /* Defer constraints checking to the member type */
78  0, /* No PER visible constraints */
79  0,
80  "relevanceDistance"
81  },
82  { ATF_POINTER, 3, offsetof(struct ManagementContainer, relevanceTrafficDirection),
83  (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
84  -1, /* IMPLICIT tag at current level */
86  0, /* Defer constraints checking to the member type */
87  0, /* No PER visible constraints */
88  0,
89  "relevanceTrafficDirection"
90  },
91  { ATF_POINTER, 2, offsetof(struct ManagementContainer, validityDuration),
92  (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
93  -1, /* IMPLICIT tag at current level */
95  0, /* Defer constraints checking to the member type */
96  0, /* No PER visible constraints */
97  asn_DFL_9_set_600, /* DEFAULT 600 */
98  "validityDuration"
99  },
100  { ATF_POINTER, 1, offsetof(struct ManagementContainer, transmissionInterval),
101  (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
102  -1, /* IMPLICIT tag at current level */
104  0, /* Defer constraints checking to the member type */
105  0, /* No PER visible constraints */
106  0,
107  "transmissionInterval"
108  },
109  { ATF_NOFLAGS, 0, offsetof(struct ManagementContainer, stationType),
110  (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
111  -1, /* IMPLICIT tag at current level */
113  0, /* Defer constraints checking to the member type */
114  0, /* No PER visible constraints */
115  0,
116  "stationType"
117  },
118 };
119 static int asn_MAP_ManagementContainer_oms_1[] = { 3, 5, 6, 7, 8 };
121  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
122 };
124  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* actionID */
125  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* detectionTime */
126  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* referenceTime */
127  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* termination */
128  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* eventPosition */
129  { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* relevanceDistance */
130  { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* relevanceTrafficDirection */
131  { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* validityDuration */
132  { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* transmissionInterval */
133  { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 } /* stationType */
134 };
136  sizeof(struct ManagementContainer),
139  10, /* Count of tags in the map */
140  asn_MAP_ManagementContainer_oms_1, /* Optional members */
141  5, 0, /* Root/Additions */
142  9, /* Start extensions */
143  11 /* Stop extensions */
144 };
146  "ManagementContainer",
147  "ManagementContainer",
157  0, /* Use generic outmost tag fetcher */
160  /sizeof(asn_DEF_ManagementContainer_tags_1[0]), /* 1 */
161  asn_DEF_ManagementContainer_tags_1, /* Same as above */
163  /sizeof(asn_DEF_ManagementContainer_tags_1[0]), /* 1 */
164  0, /* No PER visible constraints */
166  10, /* Elements count */
167  &asn_SPC_ManagementContainer_specs_1 /* Additional specs */
168 };
169 
#define offsetof(s, m)
Definition: asn_system.h:115
asn_TYPE_descriptor_t asn_DEF_StationType
Definition: StationType.c:123
static asn_TYPE_member_t asn_MBR_ManagementContainer_1[]
ber_type_decoder_f SEQUENCE_decode_ber
asn_struct_ctx_t _asn_ctx
asn_TYPE_descriptor_t asn_DEF_RelevanceTrafficDirection
der_type_encoder_f SEQUENCE_encode_der
asn_TYPE_descriptor_t asn_DEF_RelevanceDistance
static int asn_MAP_ManagementContainer_oms_1[]
asn_struct_print_f SEQUENCE_print
#define CALLOC(nmemb, size)
Definition: asn_internal.h:26
per_type_decoder_f SEQUENCE_decode_uper
per_type_encoder_f SEQUENCE_encode_uper
static asn_TYPE_tag2member_t asn_MAP_ManagementContainer_tag2el_1[]
asn_constr_check_f SEQUENCE_constraint
xer_type_decoder_f SEQUENCE_decode_xer
asn_struct_free_f SEQUENCE_free
long ValidityDuration_t
asn_TYPE_descriptor_t asn_DEF_Termination
Definition: Termination.c:123
asn_TYPE_descriptor_t asn_DEF_TransmissionInterval
asn_TYPE_descriptor_t asn_DEF_TimestampIts
Definition: TimestampIts.c:129
asn_TYPE_descriptor_t asn_DEF_ValidityDuration
xer_type_encoder_f SEQUENCE_encode_xer
static ber_tlv_tag_t asn_DEF_ManagementContainer_tags_1[]
static int asn_DFL_9_set_600(int set_value, void **sptr)
asn_TYPE_descriptor_t asn_DEF_ActionID
Definition: ActionID.c:45
static asn_SEQUENCE_specifics_t asn_SPC_ManagementContainer_specs_1
asn_TYPE_descriptor_t asn_DEF_ManagementContainer
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_TYPE_descriptor_t asn_DEF_ReferencePosition