aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/section.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--util/scan/section.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/util/scan/section.h b/util/scan/section.h
new file mode 100644
index 0000000..88e9570
--- /dev/null
+++ b/util/scan/section.h
@@ -0,0 +1,14 @@
+#ifndef __SECTION_H__
+#define __SECTION_H__
+
+#include <stdio.h>
+
+#define u8 unsigned char
+#define u16 unsigned short
+#define u32 unsigned int
+
+#define PACKED __attribute((packed))
+
+u32 getBits (const u8 *buf, int startbit, int bitlen);
+
+#endif