diff options
author | cabo <cabo@tzi.org> | 2015-09-02 21:09:55 +0200 |
---|---|---|
committer | cabo <cabo@tzi.org> | 2015-09-02 21:09:55 +0200 |
commit | f28153afecabce233d4c22fe815ab181a5f31e48 (patch) | |
tree | 6851804d6847e68e1249d7226f35075f2a1213b3 | |
parent | 730497991911cc59c16633684f14b0be839b862f (diff) | |
parent | 3c9061c71d6da2dff7886aac9a468ac4a72f5f28 (diff) | |
download | cn-cbor-f28153afecabce233d4c22fe815ab181a5f31e48.tar.gz |
Merge pull request #41 from jimsch/bytes
Declare a byte version of the data (uint8_t *).
-rw-r--r-- | include/cn-cbor/cn-cbor.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cn-cbor/cn-cbor.h b/include/cn-cbor/cn-cbor.h index 2973581..bf71af8 100644 --- a/include/cn-cbor/cn-cbor.h +++ b/include/cn-cbor/cn-cbor.h @@ -81,7 +81,9 @@ typedef struct cn_cbor { /** Data associated with the value; different branches of the union are used depending on the `type` field. */ union { - /** CN_CBOR_BYTES, CN_CBOR_TEXT */ + /** CN_CBOR_BYTES */ + const uint8_t* bytes; + /** CN_CBOR_TEXT */ const char* str; /** CN_CBOR_INT */ long sint; |