summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index ee34b9a..ca32efe 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -125,6 +125,11 @@ enum slbt_warning_level {
SLBT_WARNING_LEVEL_NONE,
};
+struct slbt_input {
+ void * addr;
+ size_t size;
+};
+
struct slbt_source_version {
int major;
int minor;
@@ -268,6 +273,13 @@ struct slbt_driver_ctx {
void * any;
};
+/* raw input api */
+slbt_api int slbt_map_input (const struct slbt_driver_ctx *,
+ int, const char *, int,
+ struct slbt_input *);
+
+slbt_api int slbt_unmap_input (struct slbt_input *);
+
/* driver api */
slbt_api int slbt_get_driver_ctx (char ** argv, char ** envp, uint32_t flags,
const struct slbt_fd_ctx *,