summaryrefslogtreecommitdiffstats
path: root/src/libr-elf.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libr-elf.h')
-rw-r--r--src/libr-elf.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/libr-elf.h b/src/libr-elf.h
new file mode 100644
index 0000000..4c632e8
--- /dev/null
+++ b/src/libr-elf.h
@@ -0,0 +1,24 @@
+#ifndef __LIBR_ELF_H
+#define __LIBR_ELF_H
+
+/* Handle ELF files */
+#include <libelf.h>
+#include <gelf.h>
+
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
+typedef struct _libr_file {
+ int fd_handle;
+ Elf *elf_handle;
+ size_t file_size;
+ libr_access_t access;
+ unsigned int version;
+} libr_file;
+
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
+/* for a clean internal API */
+typedef Elf_Scn libr_section;
+typedef Elf_Data libr_data;
+
+#endif /* __LIBR_ELF_H */