summaryrefslogtreecommitdiffstats
path: root/lib/le.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/le.h')
-rw-r--r--lib/le.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/le.h b/lib/le.h
new file mode 100644
index 0000000..e1341a7
--- /dev/null
+++ b/lib/le.h
@@ -0,0 +1,12 @@
+#ifndef LE_H
+#define LE_H
+
+#include <stdint.h>
+
+uint16_t le16toh(const void *data);
+uint32_t le32toh(const void *data);
+
+void htole16(void *data, uint16_t value);
+void htole32(void *data, uint32_t value);
+
+#endif /* LE_H */