diff options
| author | rimio <vasi.vilvoiu@gmail.com> | 2018-03-02 00:20:16 +0200 |
|---|---|---|
| committer | rimio <vasi.vilvoiu@gmail.com> | 2018-03-02 00:20:16 +0200 |
| commit | e1c8564af2b02122e442503dd2c0fb77d2b935e4 (patch) | |
| tree | 0efeaf0062c7fbea8a5a34b39a8d968d1e6c5291 /include/ecbor.h | |
| parent | 760860f3a34873e00cbf2ccb473f78cf3933a2f2 (diff) | |
Added UNDEFINED type; old error case renamed to NONE; added test case answers
Diffstat (limited to 'include/ecbor.h')
| -rw-r--r-- | include/ecbor.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ecbor.h b/include/ecbor.h index 0977e4b..c8a43f7 100644 --- a/include/ecbor.h +++ b/include/ecbor.h @@ -61,8 +61,9 @@ typedef enum { * CBOR types */ typedef enum { - /* Unknown type */ - ECBOR_TYPE_UNDEFINED = -1, + /* This is used when, for some reason, no other type could be resolved; + Usually denotes an error occured. */ + ECBOR_TYPE_NONE = -1, /* First type, used for bounds checking */ ECBOR_TYPE_FIRST = 0, @@ -84,9 +85,10 @@ typedef enum { ECBOR_TYPE_FP64 = 10, ECBOR_TYPE_BOOL = 11, ECBOR_TYPE_NULL = 12, + ECBOR_TYPE_UNDEFINED = 13, /* Last type, used for bounds checking */ - ECBOR_TYPE_LAST = ECBOR_TYPE_NULL + ECBOR_TYPE_LAST = ECBOR_TYPE_UNDEFINED } ecbor_type_t; /* |
