From e99ba2eb5565de921f4f589bf6991e0ac3cdf2a0 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 12 Feb 2023 02:00:22 +0000 Subject: helper: added slbt_map_input(), slbt_unmap_input(). --- include/slibtool/slibtool.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/slibtool') 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 *, -- cgit v1.2.3