summaryrefslogtreecommitdiff
path: root/src/common/endianness.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/endianness.h')
-rwxr-xr-xsrc/common/endianness.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h
index 7ae9575..b4c3975 100755
--- a/src/common/endianness.h
+++ b/src/common/endianness.h
@@ -26,10 +26,13 @@
#include <stdbool.h>
-#include <stdint.h>
#include <sys/types.h>
+#include "../arch/archbase.h"
+
+
+
/* Type de boutismes existants */
typedef enum _SourceEndian
{
@@ -41,13 +44,13 @@ typedef enum _SourceEndian
/* Lit un nombre non signé sur un octet. */
-bool read_u8(uint8_t *, const uint8_t *, off_t *, off_t, SourceEndian );
+bool read_u8(uint8_t *, const bin_t *, off_t *, off_t, SourceEndian);
/* Lit un nombre non signé sur deux octets. */
-bool read_u16(uint16_t *, const uint8_t *, off_t *, off_t, SourceEndian);
+bool read_u16(uint16_t *, const bin_t *, off_t *, off_t, SourceEndian);
/* Lit un nombre non signé sur quatre octets. */
-bool read_u32(uint32_t *, const uint8_t *, off_t *, off_t, SourceEndian);
+bool read_u32(uint32_t *, const bin_t *, off_t *, off_t, SourceEndian);