constr_TYPE.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3  * Redistribution and modifications are permitted subject to BSD license.
4  */
5 /*
6  * This file contains the declaration structure called "ASN.1 Type Definition",
7  * which holds all information necessary for encoding and decoding routines.
8  * This structure even contains pointer to these encoding and decoding routines
9  * for each defined ASN.1 type.
10  */
11 #ifndef _CONSTR_TYPE_H_
12 #define _CONSTR_TYPE_H_
13 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 struct asn_TYPE_descriptor_s; /* Forward declaration */
22 struct asn_TYPE_member_s; /* Forward declaration */
23 
24 /*
25  * This type provides the context information for various ASN.1 routines,
26  * primarily ones doing decoding. A member _asn_ctx of this type must be
27  * included into certain target language's structures, such as compound types.
28  */
29 typedef struct asn_struct_ctx_s {
30  short phase; /* Decoding phase */
31  short step; /* Elementary step of a phase */
32  int context; /* Other context information */
33  void *ptr; /* Decoder-specific stuff (stack elements) */
34  ber_tlv_len_t left; /* Number of bytes left, -1 for indefinite */
36 
37 #if !defined(ASN_DISABLE_BER_SUPPORT)
38 #include <ber_decoder.h> /* Basic Encoding Rules decoder */
39 #include <der_encoder.h> /* Distinguished Encoding Rules encoder */
40 #else
41 typedef void (ber_type_decoder_f)(void);
42 typedef void (der_type_encoder_f)(void);
43 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
44 
45 #if !defined(ASN_DISABLE_XER_SUPPORT)
46 #include <xer_decoder.h> /* Decoder of XER (XML, text) */
47 #include <xer_encoder.h> /* Encoder into XER (XML, text) */
48 #else
49 typedef void (xer_type_decoder_f)(void);
50 typedef void (xer_type_encoder_f)(void);
51 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
52 
53 #if !defined(ASN_DISABLE_JER_SUPPORT)
54 #include <etsi_its_spatem_ts_coding/jer_decoder.h> /* Decoder of JER (JSON, text) */
55 #include <etsi_its_spatem_ts_coding/jer_encoder.h> /* Encoder into JER (JSON, text) */
56 #else
57 typedef void (jer_type_decoder_f)(void);
58 typedef void (jer_type_encoder_f)(void);
59 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
60 
61 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
62 #include <etsi_its_spatem_ts_coding/per_decoder.h> /* Packet Encoding Rules decoder */
63 #include <etsi_its_spatem_ts_coding/per_encoder.h> /* Packet Encoding Rules encoder */
64 #else
65 typedef void (per_type_decoder_f)(void);
66 typedef void (per_type_encoder_f)(void);
67 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
68 
69 #include <etsi_its_spatem_ts_coding/constraints.h> /* Subtype constraints support */
70 
71 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
72 #include <etsi_its_spatem_ts_coding/asn_random_fill.h> /* Random structures support */
73 #else
74 typedef void (asn_random_fill_f)(void);
75 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
76 
77 #if !defined(ASN_DISABLE_OER_SUPPORT)
78 #include <oer_decoder.h> /* Octet Encoding Rules encoder */
79 #include <oer_encoder.h> /* Octet Encoding Rules encoder */
80 #else
81 typedef void (oer_type_decoder_f)(void);
82 typedef void (oer_type_encoder_f)(void);
83 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
84 
85 /*
86  * Free the structure according to its specification.
87  * Use one of ASN_STRUCT_{FREE,RESET,CONTENTS_ONLY} macros instead.
88  * Do not use directly.
89  */
91  ASFM_FREE_EVERYTHING, /* free(struct_ptr) and underlying members */
92  ASFM_FREE_UNDERLYING, /* free underlying members */
93  ASFM_FREE_UNDERLYING_AND_RESET /* FREE_UNDERLYING + memset(0) */
94 };
95 typedef void (asn_struct_free_f)(
96  const struct asn_TYPE_descriptor_s *type_descriptor,
97  void *struct_ptr, enum asn_struct_free_method);
98 
99 /*
100  * Free the structure including freeing the memory pointed to by ptr itself.
101  */
102 #define ASN_STRUCT_FREE(asn_DEF, ptr) \
103  (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_EVERYTHING)
104 
105 /*
106  * Free the memory used by the members of the structure without freeing the
107  * the structure pointer itself.
108  * ZERO-OUT the structure to the safe clean state.
109  * (Retaining the pointer may be useful in case the structure is allocated
110  * statically or arranged on the stack, yet its elements are dynamic.)
111  */
112 #define ASN_STRUCT_RESET(asn_DEF, ptr) \
113  (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING_AND_RESET)
114 
115 /*
116  * Free memory used by the members of the structure without freeing
117  * the structure pointer itself.
118  * (Retaining the pointer may be useful in case the structure is allocated
119  * statically or arranged on the stack, yet its elements are dynamic.)
120  * AVOID using it in the application code;
121  * Use a safer ASN_STRUCT_RESET() instead.
122  */
123 #define ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF, ptr) \
124  (asn_DEF).op->free_struct(&(asn_DEF), (ptr), ASFM_FREE_UNDERLYING)
125 
126 /*
127  * Print the structure according to its specification.
128  */
129 typedef int(asn_struct_print_f)(
130  const struct asn_TYPE_descriptor_s *type_descriptor,
131  const void *struct_ptr,
132  int level, /* Indentation level */
133  asn_app_consume_bytes_f *callback, void *app_key);
134 
135 /*
136  * Compare two structs between each other.
137  * Returns <0 if struct_A is "smaller" than struct_B, >0 if "greater",
138  * and =0 if "equal to", for some type-specific, stable definition of
139  * "smaller", "greater" and "equal to".
140  */
141 typedef int (asn_struct_compare_f)(
142  const struct asn_TYPE_descriptor_s *type_descriptor,
143  const void *struct_A,
144  const void *struct_B);
145 
146 /*
147  * Copies struct B into struct A.
148  * Allocates memory for struct A, if necessary.
149  */
150 typedef int (asn_struct_copy_f)(
151  const struct asn_TYPE_descriptor_s *type_descriptor,
152  void **struct_A,
153  const void *struct_B
154  );
155 
156 /*
157  * Return the outmost tag of the type.
158  * If the type is untagged CHOICE, the dynamic operation is performed.
159  * NOTE: This function pointer type is only useful internally.
160  * Do not use it in your application.
161  */
163  const struct asn_TYPE_descriptor_s *type_descriptor,
164  const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag);
165 /* The instance of the above function type; used internally. */
167 
168 /*
169  * Fetch the desired type of the Open Type based on the
170  * Information Object Set driven constraints.
171  */
173  const struct asn_TYPE_descriptor_s *type_descriptor; /* Type encoded. */
174  unsigned presence_index; /* Associated choice variant. */
177  const struct asn_TYPE_descriptor_s *parent_type_descriptor,
178  const void *parent_structure_ptr);
179 
180 /*
181  * Generalized functions for dealing with the speciic type.
182  * May be directly invoked by applications.
183  */
184 typedef struct asn_TYPE_operation_s {
185  asn_struct_free_f *free_struct; /* Free the structure */
186  asn_struct_print_f *print_struct; /* Human readable output */
187  asn_struct_compare_f *compare_struct; /* Compare two structures */
188  asn_struct_copy_f *copy_struct; /* Copy method */
189  ber_type_decoder_f *ber_decoder; /* Generic BER decoder */
190  der_type_encoder_f *der_encoder; /* Canonical DER encoder */
191  xer_type_decoder_f *xer_decoder; /* Generic XER decoder */
192  xer_type_encoder_f *xer_encoder; /* [Canonical] XER encoder */
193  jer_type_decoder_f *jer_decoder; /* Generic JER encoder */
194  jer_type_encoder_f *jer_encoder; /* Generic JER encoder */
195  oer_type_decoder_f *oer_decoder; /* Generic OER decoder */
196  oer_type_encoder_f *oer_encoder; /* Canonical OER encoder */
197  per_type_decoder_f *uper_decoder; /* Unaligned PER decoder */
198  per_type_encoder_f *uper_encoder; /* Unaligned PER encoder */
199  per_type_decoder_f *aper_decoder; /* Aligned PER decoder */
200  per_type_encoder_f *aper_encoder; /* Aligned PER encoder */
201  asn_random_fill_f *random_fill; /* Initialize with a random value */
202  asn_outmost_tag_f *outmost_tag; /* <optional, internal> */
204 
205 /*
206  * A constraints tuple specifying both the OER and PER constraints.
207  */
209 #if !defined(ASN_DISABLE_OER_SUPPORT)
210  const struct asn_oer_constraints_s *oer_constraints;
211 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
212 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
214 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
215 #if !defined(ASN_DISABLE_JER_SUPPORT)
217 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
220 
221 /*
222  * The definitive description of the destination language's structure.
223  */
224 typedef struct asn_TYPE_descriptor_s {
225  const char *name; /* A name of the ASN.1 type. "" in some cases. */
226  const char *xml_tag; /* Name used in XML tag */
227 
228  /*
229  * Generalized functions for dealing with the specific type.
230  * May be directly invoked by applications.
231  */
233 
234  /***********************************************************************
235  * Internally useful members. Not to be used by applications directly. *
236  **********************************************************************/
237 
238  /*
239  * Tags that are expected to occur.
240  */
241  const ber_tlv_tag_t *tags; /* Effective tags sequence for this type */
242  unsigned tags_count; /* Number of tags which are expected */
243  const ber_tlv_tag_t *all_tags; /* Every tag for BER/containment */
244  unsigned all_tags_count; /* Number of tags */
245 
246  /* OER, PER, and general constraints */
248 
249  /*
250  * An ASN.1 production type members (members of SEQUENCE, SET, CHOICE).
251  */
253  unsigned elements_count;
254 
255  /*
256  * Additional information describing the type, used by appropriate
257  * functions above.
258  */
259  const void *specifics;
261 
262 /*
263  * This type describes an element of the constructed type,
264  * i.e. SEQUENCE, SET, CHOICE, etc.
265  */
268  ATF_POINTER = 0x01, /* Represented by the pointer */
269  ATF_OPEN_TYPE = 0x02, /* Open Type */
270  ATF_ANY_TYPE = 0x04 /* ANY type (deprecated!) */
271  };
272 typedef struct asn_TYPE_member_s {
273  enum asn_TYPE_flags_e flags; /* Element's presentation flags */
274  unsigned optional; /* Following optional members, including current */
275  unsigned memb_offset; /* Offset of the element */
276  ber_tlv_tag_t tag; /* Outmost (most immediate) tag */
277  int tag_mode; /* IMPLICIT/no/EXPLICIT tag at current level */
278  asn_TYPE_descriptor_t *type; /* Member type descriptor */
279  asn_type_selector_f *type_selector; /* IoS runtime type selector */
281  int (*default_value_cmp)(const void *sptr); /* Compare DEFAULT <value> */
282  int (*default_value_set)(void **sptr); /* Set DEFAULT <value> */
283  const char *name; /* ASN.1 identifier of the element */
285 
286 /*
287  * BER tag to element number mapping.
288  */
289 typedef struct asn_TYPE_tag2member_s {
290  ber_tlv_tag_t el_tag; /* Outmost tag of the member */
291  unsigned el_no; /* Index of the associated member, base 0 */
292  int toff_first; /* First occurrence of the el_tag, relative */
293  int toff_last; /* Last occurrence of the el_tag, relative */
295 
296 /*
297  * This function prints out the contents of the target language's structure
298  * (struct_ptr) into the file pointer (stream) in human readable form.
299  * RETURN VALUES:
300  * 0: The structure is printed.
301  * -1: Problem dumping the structure.
302  * (See also xer_fprint() in xer_encoder.h)
303  */
304 int asn_fprint(FILE *stream, /* Destination stream descriptor */
305  const asn_TYPE_descriptor_t *td, /* ASN.1 type descriptor */
306  const void *struct_ptr); /* Structure to be printed */
307 
308 /*
309  * Copies a source structure (struct_src) into destination structure
310  * (struct_dst). Allocates memory for the destination structure, if necessary.
311  * RETURN VALUES:
312  * 0: Copy OK.
313  * -1: Problem copying the structure.
314  */
315 int asn_copy(const asn_TYPE_descriptor_t *td, /* ASN.1 type descriptor */
316  void **struct_dst, /* Structure to be populated */
317  const void *struct_src); /* Structure to be copied */
318 
319 #ifdef __cplusplus
320 }
321 #endif
322 
323 #endif /* _CONSTR_TYPE_H_ */
asn_TYPE_operation_s::outmost_tag
asn_outmost_tag_f * outmost_tag
Definition: constr_TYPE.h:202
asn_struct_ctx_s
Definition: constr_TYPE.h:29
jer_decoder.h
per_decoder.h
asn_TYPE_outmost_tag
asn_outmost_tag_f asn_TYPE_outmost_tag
Definition: constr_TYPE.h:166
asn_TYPE_descriptor_s::tags_count
unsigned tags_count
Definition: constr_TYPE.h:242
per_type_decoder_f
asn_dec_rval_t() per_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, void **struct_ptr, asn_per_data_t *per_data)
Definition: per_decoder.h:20
asn_TYPE_operation_s
Definition: constr_TYPE.h:184
per_encoder.h
ASFM_FREE_UNDERLYING
@ ASFM_FREE_UNDERLYING
Definition: constr_TYPE.h:92
asn_TYPE_tag2member_t
struct asn_TYPE_tag2member_s asn_TYPE_tag2member_t
jer_encoder.h
asn_TYPE_member_s::memb_offset
unsigned memb_offset
Definition: constr_TYPE.h:275
asn_TYPE_tag2member_s::el_tag
ber_tlv_tag_t el_tag
Definition: constr_TYPE.h:290
asn_struct_print_f
int() asn_struct_print_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_ptr, int level, asn_app_consume_bytes_f *callback, void *app_key)
Definition: constr_TYPE.h:129
asn_TYPE_operation_s::aper_encoder
per_type_encoder_f * aper_encoder
Definition: constr_TYPE.h:200
asn_random_fill_f
asn_random_fill_result_t() asn_random_fill_f(const struct asn_TYPE_descriptor_s *td, void **struct_ptr, const struct asn_encoding_constraints_s *memb_constraints, size_t max_length)
Definition: asn_random_fill.h:32
asn_struct_ctx_s::step
short step
Definition: constr_TYPE.h:31
ber_tlv_tag_t
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_jer_constraints_s
Definition: jer_support.h:18
asn_struct_ctx_s::phase
short phase
Definition: constr_TYPE.h:30
asn_struct_compare_f
int() asn_struct_compare_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_A, const void *struct_B)
Definition: constr_TYPE.h:141
asn_TYPE_descriptor_s::elements_count
unsigned elements_count
Definition: constr_TYPE.h:253
asn_TYPE_operation_s::free_struct
asn_struct_free_f * free_struct
Definition: constr_TYPE.h:185
asn_TYPE_descriptor_s::name
const char * name
Definition: constr_TYPE.h:225
asn_TYPE_operation_s::oer_decoder
oer_type_decoder_f * oer_decoder
Definition: constr_TYPE.h:195
ber_tlv_tag.h
asn_TYPE_tag2member_s::el_no
unsigned el_no
Definition: constr_TYPE.h:291
ATF_ANY_TYPE
@ ATF_ANY_TYPE
Definition: constr_TYPE.h:270
asn_TYPE_descriptor_s::all_tags_count
unsigned all_tags_count
Definition: constr_TYPE.h:244
asn_TYPE_tag2member_s::toff_first
int toff_first
Definition: constr_TYPE.h:292
ASFM_FREE_UNDERLYING_AND_RESET
@ ASFM_FREE_UNDERLYING_AND_RESET
Definition: constr_TYPE.h:93
ASFM_FREE_EVERYTHING
@ ASFM_FREE_EVERYTHING
Definition: constr_TYPE.h:91
asn_TYPE_flags_e
asn_TYPE_flags_e
Definition: constr_TYPE.h:266
asn_TYPE_operation_s::der_encoder
der_type_encoder_f * der_encoder
Definition: constr_TYPE.h:190
asn_TYPE_operation_s::xer_decoder
xer_type_decoder_f * xer_decoder
Definition: constr_TYPE.h:191
asn_TYPE_operation_s::jer_encoder
jer_type_encoder_f * jer_encoder
Definition: constr_TYPE.h:194
asn_copy
int asn_copy(const asn_TYPE_descriptor_t *td, void **struct_dst, const void *struct_src)
Definition: constr_TYPE.c:61
asn_TYPE_operation_s::copy_struct
asn_struct_copy_f * copy_struct
Definition: constr_TYPE.h:188
asn_TYPE_tag2member_s
Definition: constr_TYPE.h:289
asn_TYPE_tag2member_s::toff_last
int toff_last
Definition: constr_TYPE.h:293
asn_TYPE_descriptor_s::xml_tag
const char * xml_tag
Definition: constr_TYPE.h:226
asn_encoding_constraints_t
struct asn_encoding_constraints_s asn_encoding_constraints_t
ber_tlv_len_t
ssize_t ber_tlv_len_t
Definition: ber_tlv_length.h:12
asn_TYPE_operation_s::xer_encoder
xer_type_encoder_f * xer_encoder
Definition: constr_TYPE.h:192
ATF_POINTER
@ ATF_POINTER
Definition: constr_TYPE.h:268
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
jer_type_encoder_f
asn_enc_rval_t() jer_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, const void *struct_ptr, int ilevel, enum jer_encoder_flags_e jer_flags, asn_app_consume_bytes_f *consume_bytes_cb, void *app_key)
Definition: jer_encoder.h:73
asn_TYPE_member_s::type
asn_TYPE_descriptor_t * type
Definition: constr_TYPE.h:278
asn_struct_ctx_t
struct asn_struct_ctx_s asn_struct_ctx_t
asn_type_selector_result_s::presence_index
unsigned presence_index
Definition: constr_TYPE.h:174
asn_TYPE_descriptor_s::specifics
const void * specifics
Definition: constr_TYPE.h:259
asn_TYPE_member_t
struct asn_TYPE_member_s asn_TYPE_member_t
ATF_OPEN_TYPE
@ ATF_OPEN_TYPE
Definition: constr_TYPE.h:269
asn_TYPE_member_s::name
const char * name
Definition: constr_TYPE.h:283
asn_TYPE_operation_s::random_fill
asn_random_fill_f * random_fill
Definition: constr_TYPE.h:201
jer_type_decoder_f
asn_dec_rval_t() jer_type_decoder_f(const asn_codec_ctx_t *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, const asn_jer_constraints_t *constraints, void **struct_ptr, const void *buf_ptr, size_t size)
Definition: jer_decoder.h:32
asn_TYPE_descriptor_s::tags
const ber_tlv_tag_t * tags
Definition: constr_TYPE.h:241
asn_type_selector_f
asn_type_selector_result_t() asn_type_selector_f(const struct asn_TYPE_descriptor_s *parent_type_descriptor, const void *parent_structure_ptr)
Definition: constr_TYPE.h:176
asn_TYPE_descriptor_s::op
asn_TYPE_operation_t * op
Definition: constr_TYPE.h:232
asn_struct_ctx_s::context
int context
Definition: constr_TYPE.h:32
asn_struct_free_method
asn_struct_free_method
Definition: constr_TYPE.h:90
asn_TYPE_operation_s::aper_decoder
per_type_decoder_f * aper_decoder
Definition: constr_TYPE.h:199
asn_TYPE_operation_s::compare_struct
asn_struct_compare_f * compare_struct
Definition: constr_TYPE.h:187
per_type_encoder_f
asn_enc_rval_t() per_type_encoder_f(const struct asn_TYPE_descriptor_s *type_descriptor, const asn_per_constraints_t *constraints, const void *struct_ptr, asn_per_outp_t *per_output)
Definition: per_encoder.h:20
asn_random_fill.h
asn_constr_check_f
int() asn_constr_check_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_ptr, asn_app_constraint_failed_f *optional_callback, void *optional_app_key)
Definition: constraints.h:41
asn_fprint
int asn_fprint(FILE *stream, const asn_TYPE_descriptor_t *td, const void *struct_ptr)
Definition: constr_TYPE.c:36
asn_TYPE_operation_s::print_struct
asn_struct_print_f * print_struct
Definition: constr_TYPE.h:186
asn_encoding_constraints_s::jer_constraints
const struct asn_jer_constraints_s * jer_constraints
Definition: constr_TYPE.h:216
asn_TYPE_operation_s::jer_decoder
jer_type_decoder_f * jer_decoder
Definition: constr_TYPE.h:193
ATF_NOFLAGS
@ ATF_NOFLAGS
Definition: constr_TYPE.h:267
asn_encoding_constraints_s::per_constraints
const struct asn_per_constraints_s * per_constraints
Definition: constr_TYPE.h:213
asn_encoding_constraints_s
Definition: constr_TYPE.h:208
asn_TYPE_descriptor_s::all_tags
const ber_tlv_tag_t * all_tags
Definition: constr_TYPE.h:243
asn_type_selector_result_s
Definition: constr_TYPE.h:172
asn_app_consume_bytes_f
int() asn_app_consume_bytes_f(const void *buffer, size_t size, void *application_specific_key)
Definition: asn_application.h:124
asn_outmost_tag_f
ber_tlv_tag_t() asn_outmost_tag_f(const struct asn_TYPE_descriptor_s *type_descriptor, const void *struct_ptr, int tag_mode, ber_tlv_tag_t tag)
Definition: constr_TYPE.h:162
asn_TYPE_descriptor_s::elements
struct asn_TYPE_member_s * elements
Definition: constr_TYPE.h:252
constraints.h
asn_encoding_constraints_s::general_constraints
asn_constr_check_f * general_constraints
Definition: constr_TYPE.h:218
asn_TYPE_member_s::tag_mode
int tag_mode
Definition: constr_TYPE.h:277
asn_TYPE_operation_s::uper_encoder
per_type_encoder_f * uper_encoder
Definition: constr_TYPE.h:198
asn_TYPE_operation_s::uper_decoder
per_type_decoder_f * uper_decoder
Definition: constr_TYPE.h:197
asn_struct_ctx_s::left
ber_tlv_len_t left
Definition: constr_TYPE.h:34
asn_TYPE_descriptor_t
struct asn_TYPE_descriptor_s asn_TYPE_descriptor_t
asn_per_constraints_s
Definition: per_support.h:30
asn_type_selector_result_t
struct asn_type_selector_result_s asn_type_selector_result_t
asn_struct_ctx_s::ptr
void * ptr
Definition: constr_TYPE.h:33
asn_TYPE_member_s
Definition: constr_TYPE.h:272
asn_TYPE_operation_s::ber_decoder
ber_type_decoder_f * ber_decoder
Definition: constr_TYPE.h:189
asn_TYPE_descriptor_s::encoding_constraints
asn_encoding_constraints_t encoding_constraints
Definition: constr_TYPE.h:247
ber_tlv_length.h
asn_TYPE_member_s::flags
enum asn_TYPE_flags_e flags
Definition: constr_TYPE.h:273
asn_TYPE_member_s::default_value_cmp
int(* default_value_cmp)(const void *sptr)
Definition: constr_TYPE.h:281
asn_type_selector_result_s::type_descriptor
const struct asn_TYPE_descriptor_s * type_descriptor
Definition: constr_TYPE.h:173
asn_struct_copy_f
int() asn_struct_copy_f(const struct asn_TYPE_descriptor_s *type_descriptor, void **struct_A, const void *struct_B)
Definition: constr_TYPE.h:150
asn_TYPE_operation_t
struct asn_TYPE_operation_s asn_TYPE_operation_t
asn_TYPE_member_s::tag
ber_tlv_tag_t tag
Definition: constr_TYPE.h:276
asn_struct_free_f
void() asn_struct_free_f(const struct asn_TYPE_descriptor_s *type_descriptor, void *struct_ptr, enum asn_struct_free_method)
Definition: constr_TYPE.h:95
asn_TYPE_member_s::type_selector
asn_type_selector_f * type_selector
Definition: constr_TYPE.h:279
asn_encoding_constraints_s::oer_constraints
const struct asn_oer_constraints_s * oer_constraints
Definition: constr_TYPE.h:210
asn_TYPE_member_s::encoding_constraints
asn_encoding_constraints_t encoding_constraints
Definition: constr_TYPE.h:280
asn_TYPE_member_s::optional
unsigned optional
Definition: constr_TYPE.h:274
asn_TYPE_operation_s::oer_encoder
oer_type_encoder_f * oer_encoder
Definition: constr_TYPE.h:196
asn_TYPE_member_s::default_value_set
int(* default_value_set)(void **sptr)
Definition: constr_TYPE.h:282


etsi_its_spatem_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:29:28