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 _ISO646String_H_
|
|
|
|
#define _ISO646String_H_
|
|
|
|
|
2004-09-24 21:00:50 +00:00
|
|
|
#include <asn_application.h>
|
2004-06-03 03:38:44 +00:00
|
|
|
#include <VisibleString.h>
|
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
typedef VisibleString_t ISO646String_t; /* Implemented using VisibleString */
|
|
|
|
|
2004-09-29 13:26:15 +00:00
|
|
|
extern asn_TYPE_descriptor_t asn_DEF_ISO646String;
|
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_ISO646String;
|
2004-06-03 03:38:44 +00:00
|
|
|
|
2017-08-10 09:14:59 +00:00
|
|
|
#define ISO646String_free OCTET_STRING_free
|
|
|
|
#define ISO646String_print OCTET_STRING_print_utf8
|
|
|
|
#define ISO646String_compare OCTET_STRING_compare
|
|
|
|
#define ISO646String_constraint VisibleString_constraint
|
|
|
|
#define ISO646String_decode_ber OCTET_STRING_decode_ber
|
|
|
|
#define ISO646String_encode_der OCTET_STRING_encode_der
|
|
|
|
#define ISO646String_decode_xer OCTET_STRING_decode_xer_utf8
|
|
|
|
#define ISO646String_encode_xer OCTET_STRING_encode_xer_utf8
|
|
|
|
#define ISO646String_decode_uper OCTET_STRING_decode_uper
|
|
|
|
#define ISO646String_encode_uper OCTET_STRING_encode_uper
|
2016-05-16 05:50:09 +00:00
|
|
|
|
2005-07-24 09:03:44 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2004-06-03 03:38:44 +00:00
|
|
|
#endif /* _ISO646String_H_ */
|