summaryrefslogtreecommitdiff
path: root/Database/database-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'Database/database-types.h')
-rw-r--r--Database/database-types.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Database/database-types.h b/Database/database-types.h
index 7d92f87..49db9b8 100644
--- a/Database/database-types.h
+++ b/Database/database-types.h
@@ -1,6 +1,8 @@
#ifndef __DATABASE_TYPES_H__
#define __DATABASE_TYPES_H__
+#include <generic.h>
+
/** The basic tags that describe the bytes of the database. The tag "CODE_FIRST_BYTE" is
* mainly for multi-bytes instructions, in order to help the UI displaying
* properly the instructions.
@@ -36,6 +38,9 @@ typedef union {
};
} absolute_ptr;
+static inline Uint32 SEGID(absolute_ptr ptr) { return ptr.segment_id; }
+static inline Uint32 SEGOFFSET(absolute_ptr ptr) { return ptr.ptr; }
+
/** A function description.
*/