aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcabo <cabo@tzi.org>2015-09-02 21:09:55 +0200
committercabo <cabo@tzi.org>2015-09-02 21:09:55 +0200
commitf28153afecabce233d4c22fe815ab181a5f31e48 (patch)
tree6851804d6847e68e1249d7226f35075f2a1213b3
parent730497991911cc59c16633684f14b0be839b862f (diff)
parent3c9061c71d6da2dff7886aac9a468ac4a72f5f28 (diff)
downloadcn-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.h4
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;