diff options
author | midipix <writeonce@midipix.org> | 2023-02-12 02:00:22 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2023-02-12 02:10:00 +0000 |
commit | e99ba2eb5565de921f4f589bf6991e0ac3cdf2a0 (patch) | |
tree | 9a204ae2f374fd0e5c0e21e9644a5d25a20a9ee2 /include | |
parent | 2f5700dd80bf64e0a4314beb7d9a7f35a11996a4 (diff) | |
download | slibtool-e99ba2eb5565de921f4f589bf6991e0ac3cdf2a0.tar.bz2 slibtool-e99ba2eb5565de921f4f589bf6991e0ac3cdf2a0.tar.xz |
helper: added slbt_map_input(), slbt_unmap_input().
Diffstat (limited to 'include')
-rw-r--r-- | include/slibtool/slibtool.h | 12 |
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 *, |