2004-06-03 03:38:44 +00:00
|
|
|
/*-
|
2017-10-18 04:27:33 +00:00
|
|
|
* Copyright (c) 2003-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
|
2004-06-03 03:38:44 +00:00
|
|
|
* Redistribution and modifications are permitted subject to BSD license.
|
|
|
|
*/
|
|
|
|
#ifndef _CONSTR_SEQUENCE_OF_H_
|
|
|
|
#define _CONSTR_SEQUENCE_OF_H_
|
|
|
|
|
2004-09-24 21:00:50 +00:00
|
|
|
#include <asn_application.h>
|
2004-06-03 03:38:44 +00:00
|
|
|
#include <constr_SET_OF.h> /* Implemented using SET OF */
|
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
/*
|
|
|
|
* A set specialized functions dealing with the SEQUENCE OF type.
|
2005-02-14 20:15:40 +00:00
|
|
|
* Generally implemented using SET OF.
|
2004-06-03 03:38:44 +00:00
|
|
|
*/
|
2004-09-22 16:06:28 +00:00
|
|
|
#define SEQUENCE_OF_free SET_OF_free
|
|
|
|
#define SEQUENCE_OF_print SET_OF_print
|
Move type operations to another structure
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.
Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-19 17:25:45 +00:00
|
|
|
#define SEQUENCE_OF_compare SET_OF_compare
|
2004-06-03 03:38:44 +00:00
|
|
|
#define SEQUENCE_OF_constraint SET_OF_constraint
|
|
|
|
#define SEQUENCE_OF_decode_ber SET_OF_decode_ber
|
2005-02-14 20:15:40 +00:00
|
|
|
#define SEQUENCE_OF_decode_xer SET_OF_decode_xer
|
2005-11-26 11:25:14 +00:00
|
|
|
#define SEQUENCE_OF_decode_uper SET_OF_decode_uper
|
2017-08-30 06:38:31 +00:00
|
|
|
#define SEQUENCE_OF_decode_oer SET_OF_decode_oer
|
|
|
|
#define SEQUENCE_OF_encode_oer SET_OF_encode_oer
|
2017-09-30 06:15:58 +00:00
|
|
|
#define SEQUENCE_OF_random_fill SET_OF_random_fill
|
2004-06-03 03:38:44 +00:00
|
|
|
der_type_encoder_f SEQUENCE_OF_encode_der;
|
2004-09-22 16:06:28 +00:00
|
|
|
xer_type_encoder_f SEQUENCE_OF_encode_xer;
|
2006-08-18 01:34:18 +00:00
|
|
|
per_type_encoder_f SEQUENCE_OF_encode_uper;
|
Move type operations to another structure
Every type has free, print, check_constraints, ber_decoder, der_encoder,
xer_decoder, xer_encoder, uper_decoder, uper_encoder and outmost_tag
operations. We move them out to a separate structure asn_TYPE_operation_t.
Combined with previous logic simplification, these operations are based
on ASN.1 basic types, constructed types and string types. So we can
reduce the space occupied by asn_TYPE_descriptor_t variables.
2017-08-19 17:25:45 +00:00
|
|
|
extern asn_TYPE_operation_t asn_OP_SEQUENCE_OF;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
#endif /* _CONSTR_SET_OF_H_ */
|