Skip to content
Snippets Groups Projects
Commit 11c3e170 authored by Lev Walkin's avatar Lev Walkin
Browse files

reheaderization

parent 12984671
No related branches found
No related tags found
No related merge requests found
Showing
with 19 additions and 31 deletions
......@@ -216,7 +216,7 @@ asn1c_save_streams(arg_t *arg, asn1c_fdeps_t *deps) {
fprintf(fp_h, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n");
fprintf(fp_h, "#include <constr_TYPE.h>\n\n");
fprintf(fp_h, "#include <asn_application.h>\n\n");
TQ_FOR(ot, &(cs->destination[OT_INCLUDES].chunks), next) {
asn1c_activate_dependency(deps, 0, ot->buf);
......
......@@ -5,7 +5,6 @@
#ifndef ASN_TYPE_ANY_H
#define ASN_TYPE_ANY_H
#include <constr_TYPE.h>
#include <OCTET_STRING.h> /* Implemented via OCTET SRING type */
typedef struct ANY {
......
......@@ -5,10 +5,9 @@
#ifndef _BIT_STRING_H_
#define _BIT_STRING_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t BIT_STRING_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t BIT_STRING_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_BIT_STRING;
......
......@@ -5,10 +5,9 @@
#ifndef _BMPString_H_
#define _BMPString_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t BMPString_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t BMPString_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_BMPString;
......
......@@ -5,7 +5,7 @@
#ifndef _BOOLEAN_H_
#define _BOOLEAN_H_
#include <constr_TYPE.h>
#include <asn_application.h>
/*
* The underlying integer may contain various values, but everything
......
......@@ -5,10 +5,9 @@
#ifndef _ENUMERATED_H_
#define _ENUMERATED_H_
#include <constr_TYPE.h>
#include <INTEGER.h>
typedef INTEGER_t ENUMERATED_t; /* Implemented in terms of INTEGER */
typedef INTEGER_t ENUMERATED_t; /* Implemented via INTEGER */
extern asn1_TYPE_descriptor_t asn1_DEF_ENUMERATED;
......
......@@ -5,10 +5,9 @@
#ifndef _GeneralString_H_
#define _GeneralString_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t GeneralString_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t GeneralString_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_GeneralString;
......
......@@ -5,10 +5,9 @@
#ifndef _GeneralizedTime_H_
#define _GeneralizedTime_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t GeneralizedTime_t; /* Implemented using OCTET STRING */
typedef OCTET_STRING_t GeneralizedTime_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_GeneralizedTime;
......
......@@ -5,10 +5,9 @@
#ifndef _GraphicString_H_
#define _GraphicString_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t GraphicString_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t GraphicString_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_GraphicString;
......
......@@ -5,10 +5,9 @@
#ifndef _IA5String_H_
#define _IA5String_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t IA5String_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t IA5String_t; /* Implemented via OCTET STRING */
/*
* IA5String ASN.1 type definition.
......
......@@ -5,7 +5,7 @@
#ifndef _INTEGER_H_
#define _INTEGER_H_
#include <constr_TYPE.h>
#include <asn_application.h>
typedef struct INTEGER {
uint8_t *buf; /* Buffer with consecutive INTEGER bits (big-endian) */
......
......@@ -5,7 +5,7 @@
#ifndef _ISO646String_H_
#define _ISO646String_H_
#include <constr_TYPE.h>
#include <asn_application.h>
#include <VisibleString.h>
typedef VisibleString_t ISO646String_t; /* Implemented using VisibleString */
......
......@@ -5,7 +5,7 @@
#ifndef ASN_TYPE_NULL_H
#define ASN_TYPE_NULL_H
#include <constr_TYPE.h>
#include <asn_application.h>
/*
* The value of the NULL type is meaningless: see BOOLEAN if you want to
......
......@@ -12,7 +12,7 @@
#ifndef _NativeInteger_H_
#define _NativeInteger_H_
#include <constr_TYPE.h>
#include <asn_application.h>
extern asn1_TYPE_descriptor_t asn1_DEF_NativeInteger;
......
......@@ -11,7 +11,7 @@
#ifndef ASN_TYPE_NativeReal_H
#define ASN_TYPE_NativeReal_H
#include <constr_TYPE.h>
#include <asn_application.h>
extern asn1_TYPE_descriptor_t asn1_DEF_NativeReal;
......
......@@ -5,10 +5,9 @@
#ifndef _NumericString_H_
#define _NumericString_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t NumericString_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t NumericString_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_NumericString;
......
......@@ -5,10 +5,9 @@
#ifndef _OBJECT_IDENTIFIER_H_
#define _OBJECT_IDENTIFIER_H_
#include <constr_TYPE.h>
#include <INTEGER.h>
typedef INTEGER_t OBJECT_IDENTIFIER_t; /* Implemented in terms of INTEGER */
typedef INTEGER_t OBJECT_IDENTIFIER_t; /* Implemented via INTEGER */
extern asn1_TYPE_descriptor_t asn1_DEF_OBJECT_IDENTIFIER;
......
......@@ -5,7 +5,7 @@
#ifndef _OCTET_STRING_H_
#define _OCTET_STRING_H_
#include <constr_TYPE.h>
#include <asn_application.h>
typedef struct OCTET_STRING {
uint8_t *buf; /* Buffer with consecutive OCTET_STRING bits */
......
......@@ -5,10 +5,9 @@
#ifndef _ObjectDescriptor_H_
#define _ObjectDescriptor_H_
#include <constr_TYPE.h>
#include <GraphicString.h>
typedef GraphicString_t ObjectDescriptor_t; /* Implemented in terms of. */
typedef GraphicString_t ObjectDescriptor_t; /* Implemented via GraphicString */
extern asn1_TYPE_descriptor_t asn1_DEF_ObjectDescriptor;
......
......@@ -5,10 +5,9 @@
#ifndef _PrintableString_H_
#define _PrintableString_H_
#include <constr_TYPE.h>
#include <OCTET_STRING.h>
typedef OCTET_STRING_t PrintableString_t; /* Implemented in terms of OCTET STRING */
typedef OCTET_STRING_t PrintableString_t; /* Implemented via OCTET STRING */
extern asn1_TYPE_descriptor_t asn1_DEF_PrintableString;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment