summaryrefslogtreecommitdiff
path: root/src/ecbor_internal.h
diff options
context:
space:
mode:
authorrimio <vasi.vilvoiu@gmail.com>2018-03-01 23:33:16 +0200
committerrimio <vasi.vilvoiu@gmail.com>2018-03-01 23:33:16 +0200
commit3d821056f53edcf6fc8786f0d156fa56720a0c5a (patch)
treec44fa080dfeaef8458519219bb9db0786c125d3e /src/ecbor_internal.h
parent85e583715c02dcd9edb0875943327957e53227f8 (diff)
Refactor major_type->type; hide major type 7 from user
Diffstat (limited to 'src/ecbor_internal.h')
-rw-r--r--src/ecbor_internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ecbor_internal.h b/src/ecbor_internal.h
index e5e4179..7b29546 100644
--- a/src/ecbor_internal.h
+++ b/src/ecbor_internal.h
@@ -15,6 +15,11 @@
#define false 0
#define true 1
+/* CBOR major type 7 must not be exposed to user, but translated to other types */
+enum {
+ ECBOR_TYPE_SPECIAL = 7
+};
+
/* Additional value meanings */
enum {
ECBOR_ADDITIONAL_1BYTE = 24,