summaryrefslogtreecommitdiffstats
path: root/libasm
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2020-01-08 15:04:50 +0100
committerMark Wielaard <[email protected]>2020-01-12 17:14:52 +0100
commit287a18452ad036fe687c88f26e9f59769dc283f5 (patch)
tree41bfe327399389cb1463eeb3742430bcfd4c0108 /libasm
parent1d26e8e1076b98e8131b96b718d80e0dcbbc3d86 (diff)
libasm.h: Don't include libebl.h. Define an opaque Ebl handle.
Using libasm isn't really usable without a way to create an Ebl handle. But we don't support libebl.h (and libebl itself). Just define the Ebl handle as an opaque struct. Code that uses it needs to figure out how to instantiate one itself (they cannot in any supportable way...) Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libasm')
-rw-r--r--libasm/ChangeLog5
-rw-r--r--libasm/libasm.h2
-rw-r--r--libasm/libasmP.h1
3 files changed, 7 insertions, 1 deletions
diff --git a/libasm/ChangeLog b/libasm/ChangeLog
index a1abac88..7b0d3df3 100644
--- a/libasm/ChangeLog
+++ b/libasm/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-08 Mark Wielaard <[email protected]>
+
+ * libasm.h: Don't include libebl.h. Define an opaque Ebl handle.
+ * libasmP.h: Do include libebl.h.
+
2019-08-28 Mark Wielaard <[email protected]>
* Makefile.am (libasm_so_DEPS): Replace libebl.a with libebl_pic.a.
diff --git a/libasm/libasm.h b/libasm/libasm.h
index 5c612243..a45c9fa3 100644
--- a/libasm/libasm.h
+++ b/libasm/libasm.h
@@ -32,7 +32,7 @@
#include <stdbool.h>
#include <stdint.h>
-#include <libebl.h>
+typedef struct ebl Ebl;
/* Opaque type for the assembler context descriptor. */
diff --git a/libasm/libasmP.h b/libasm/libasmP.h
index 54460cf9..a4703fc3 100644
--- a/libasm/libasmP.h
+++ b/libasm/libasmP.h
@@ -31,6 +31,7 @@
#include <stdio.h>
+#include "libebl.h"
#include <libasm.h>
#include "libdwelf.h"