From a4fbfacbfaee47921458d4f97dd07415d1f8607b Mon Sep 17 00:00:00 2001 From: Eric Betts Date: Mon, 3 Jul 2023 17:00:54 -0700 Subject: [PATCH] rename versiont to samversion --- lib/asn1/{Version.c => SamVersion.c} | 42 ++++++++++++++-------------- lib/asn1/{Version.h => SamVersion.h} | 14 +++++----- seader.asn1 | 2 +- 3 files changed, 29 insertions(+), 29 deletions(-) rename lib/asn1/{Version.c => SamVersion.c} (50%) rename lib/asn1/{Version.h => SamVersion.h} (74%) diff --git a/lib/asn1/Version.c b/lib/asn1/SamVersion.c similarity index 50% rename from lib/asn1/Version.c rename to lib/asn1/SamVersion.c index 7ac30a4..9ebeb63 100644 --- a/lib/asn1/Version.c +++ b/lib/asn1/SamVersion.c @@ -5,10 +5,10 @@ * `asn1c -D ./lib/asn1 -no-gen-example -pdu=all` */ -#include "Version.h" +#include "SamVersion.h" -static asn_TYPE_member_t asn_MBR_Version_1[] = { - { ATF_NOFLAGS, 0, offsetof(struct Version, v), +static asn_TYPE_member_t asn_MBR_SamVersion_1[] = { + { ATF_NOFLAGS, 0, offsetof(struct SamVersion, v), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, @@ -17,7 +17,7 @@ static asn_TYPE_member_t asn_MBR_Version_1[] = { 0, 0, /* No default value */ "v" }, - { ATF_NOFLAGS, 0, offsetof(struct Version, f), + { ATF_NOFLAGS, 0, offsetof(struct SamVersion, f), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, @@ -27,34 +27,34 @@ static asn_TYPE_member_t asn_MBR_Version_1[] = { "f" }, }; -static const ber_tlv_tag_t asn_DEF_Version_tags_1[] = { +static const ber_tlv_tag_t asn_DEF_SamVersion_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; -static const asn_TYPE_tag2member_t asn_MAP_Version_tag2el_1[] = { +static const asn_TYPE_tag2member_t asn_MAP_SamVersion_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* v */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* f */ }; -static asn_SEQUENCE_specifics_t asn_SPC_Version_specs_1 = { - sizeof(struct Version), - offsetof(struct Version, _asn_ctx), - asn_MAP_Version_tag2el_1, +static asn_SEQUENCE_specifics_t asn_SPC_SamVersion_specs_1 = { + sizeof(struct SamVersion), + offsetof(struct SamVersion, _asn_ctx), + asn_MAP_SamVersion_tag2el_1, 2, /* Count of tags in the map */ 0, 0, 0, /* Optional elements (not needed) */ -1, /* First extension addition */ }; -asn_TYPE_descriptor_t asn_DEF_Version = { - "Version", - "Version", +asn_TYPE_descriptor_t asn_DEF_SamVersion = { + "SamVersion", + "SamVersion", &asn_OP_SEQUENCE, - asn_DEF_Version_tags_1, - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ - asn_DEF_Version_tags_1, /* Same as above */ - sizeof(asn_DEF_Version_tags_1) - /sizeof(asn_DEF_Version_tags_1[0]), /* 1 */ + asn_DEF_SamVersion_tags_1, + sizeof(asn_DEF_SamVersion_tags_1) + /sizeof(asn_DEF_SamVersion_tags_1[0]), /* 1 */ + asn_DEF_SamVersion_tags_1, /* Same as above */ + sizeof(asn_DEF_SamVersion_tags_1) + /sizeof(asn_DEF_SamVersion_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, - asn_MBR_Version_1, + asn_MBR_SamVersion_1, 2, /* Elements count */ - &asn_SPC_Version_specs_1 /* Additional specs */ + &asn_SPC_SamVersion_specs_1 /* Additional specs */ }; diff --git a/lib/asn1/Version.h b/lib/asn1/SamVersion.h similarity index 74% rename from lib/asn1/Version.h rename to lib/asn1/SamVersion.h index 7c3ba83..3e01b8c 100644 --- a/lib/asn1/Version.h +++ b/lib/asn1/SamVersion.h @@ -5,8 +5,8 @@ * `asn1c -D ./lib/asn1 -no-gen-example -pdu=all` */ -#ifndef _Version_H_ -#define _Version_H_ +#ifndef _SamVersion_H_ +#define _SamVersion_H_ #include @@ -19,21 +19,21 @@ extern "C" { #endif -/* Version */ -typedef struct Version { +/* SamVersion */ +typedef struct SamVersion { OCTET_STRING_t v; OCTET_STRING_t f; /* Context for parsing across buffer boundaries */ asn_struct_ctx_t _asn_ctx; -} Version_t; +} SamVersion_t; /* Implementation */ -extern asn_TYPE_descriptor_t asn_DEF_Version; +extern asn_TYPE_descriptor_t asn_DEF_SamVersion; #ifdef __cplusplus } #endif -#endif /* _Version_H_ */ +#endif /* _SamVersion_H_ */ #include diff --git a/seader.asn1 b/seader.asn1 index 7cb1580..32f727a 100644 --- a/seader.asn1 +++ b/seader.asn1 @@ -80,7 +80,7 @@ FrameProtocol ::= ENUMERATED { iclass (4) } -Version ::= SEQUENCE { +SamVersion ::= SEQUENCE { v [0] IMPLICIT OCTET STRING, f [1] IMPLICIT OCTET STRING }