Pārlūkot izejas kodu

rename versiont to samversion

Eric Betts 2 gadi atpakaļ
vecāks
revīzija
a4fbfacbfa
3 mainītis faili ar 29 papildinājumiem un 29 dzēšanām
  1. 21 21
      lib/asn1/SamVersion.c
  2. 7 7
      lib/asn1/SamVersion.h
  3. 1 1
      seader.asn1

+ 21 - 21
lib/asn1/Version.c → 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 */
 };
 

+ 7 - 7
lib/asn1/Version.h → 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 <asn_application.h>
@@ -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 <asn_internal.h>

+ 1 - 1
seader.asn1

@@ -80,7 +80,7 @@ FrameProtocol ::= ENUMERATED {
   iclass (4)
 }
 
-Version ::= SEQUENCE {
+SamVersion ::= SEQUENCE {
   v [0] IMPLICIT OCTET STRING,
   f [1] IMPLICIT OCTET STRING
 }