summaryrefslogtreecommitdiffhomepage
path: root/src/internal/perk_driver_impl.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-08 20:01:30 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:32 -0500
commiteb4c04e1978f8f217e24d46a3baeecf54ac23096 (patch)
treedc4d1e39fb7b8039fc81b6853a54ce713491b017 /src/internal/perk_driver_impl.h
parent61bf9cc5fe5153f40214c5c057487e31eac3a502 (diff)
downloadperk-eb4c04e1978f8f217e24d46a3baeecf54ac23096.tar.bz2
perk-eb4c04e1978f8f217e24d46a3baeecf54ac23096.tar.xz
internal headers: consolidate perk_impl.h and perk_driver_impl.h.
Diffstat (limited to 'src/internal/perk_driver_impl.h')
-rw-r--r--src/internal/perk_driver_impl.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h
index 016a369..681cd3c 100644
--- a/src/internal/perk_driver_impl.h
+++ b/src/internal/perk_driver_impl.h
@@ -1,6 +1,13 @@
#ifndef PE_DRIVER_IMPL_H
#define PE_DRIVER_IMPL_H
+#include <stdint.h>
+#include <stdio.h>
+#include <sys/types.h>
+
+#include <perk/perk.h>
+#include <perk/perk_meta.h>
+
enum app_tags {
TAG_HELP,
TAG_VERSION,
@@ -11,4 +18,23 @@ enum app_tags {
TAG_IMPSYMS,
};
+struct pe_driver_ctx_impl {
+ struct pe_symbol_ctx symctx;
+ struct pe_output_ctx outctx;
+ struct pe_linker_ctx lnkctx;
+ struct pe_server_ctx srvctx;
+ struct pe_io_ctx ioctx;
+ struct pe_common_ctx cctx;
+ struct pe_driver_ctx ctx;
+};
+
+struct pe_unit_ctx_impl {
+ const char * path;
+ struct pe_raw_image map;
+ struct pe_image_meta * meta;
+ struct pe_io_ctx ioctx;
+ struct pe_common_ctx cctx;
+ struct pe_unit_ctx uctx;
+};
+
#endif