From 3d821056f53edcf6fc8786f0d156fa56720a0c5a Mon Sep 17 00:00:00 2001 From: rimio Date: Thu, 1 Mar 2018 23:33:16 +0200 Subject: Refactor major_type->type; hide major type 7 from user --- src/ecbor_internal.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ecbor_internal.h') 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, -- cgit v1.2.3