summaryrefslogtreecommitdiff
path: root/src/ecbor_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ecbor_internal.h')
-rw-r--r--src/ecbor_internal.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ecbor_internal.h b/src/ecbor_internal.h
index f0ec24b..b783eb1 100644
--- a/src/ecbor_internal.h
+++ b/src/ecbor_internal.h
@@ -8,6 +8,8 @@
#ifndef _ECBOR_INTERNAL_H_
#define _ECBOR_INTERNAL_H_
+#include <stdint.h>
+
/* Don't rely on <stddef.h> for this */
#define NULL 0
#define false 0
@@ -23,4 +25,16 @@ enum {
ECBOR_ADDITIONAL_INDEFINITE = 31
};
+/*
+ * Endianness
+ */
+extern uint16_t
+ecbor_uint16_from_big_endian (uint16_t value);
+
+extern uint32_t
+ecbor_uint32_from_big_endian (uint32_t value);
+
+extern uint64_t
+ecbor_uint64_from_big_endian (uint64_t value);
+
#endif \ No newline at end of file