diff options
author | midipix <writeonce@midipix.org> | 2024-02-25 04:14:36 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-25 04:52:57 +0000 |
commit | b1be90f4870a6ee3b8807b15b3e8bfe9c5573bbc (patch) | |
tree | affc8de82c53f489aee266e0aa5bbb54c8822263 /include | |
parent | db13969653bb99be7e5ce02c013079fe6e7ed0da (diff) | |
download | slibtool-b1be90f4870a6ee3b8807b15b3e8bfe9c5573bbc.tar.bz2 slibtool-b1be90f4870a6ee3b8807b15b3e8bfe9c5573bbc.tar.xz |
driver: added slbt_lib_get_txtfile_ctx(): plain line vector from a text file.
Diffstat (limited to 'include')
-rw-r--r-- | include/slibtool/slibtool.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 4046352..320a614 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -362,6 +362,11 @@ struct slbt_symlist_ctx { const char ** symstrv; }; +struct slbt_txtfile_ctx { + const char * const * path; + const char ** txtlinev; +}; + /* raw input api */ slbt_api int slbt_fs_map_input (const struct slbt_driver_ctx *, int, const char *, int, @@ -384,6 +389,10 @@ slbt_api int slbt_lib_get_symlist_ctx (const struct slbt_driver_ctx *, const c slbt_api void slbt_lib_free_symlist_ctx (struct slbt_symlist_ctx *); +slbt_api int slbt_lib_get_txtfile_ctx (const struct slbt_driver_ctx *, const char *, struct slbt_txtfile_ctx **); + +slbt_api void slbt_lib_free_txtfile_ctx (struct slbt_txtfile_ctx *); + /* command execution context api */ slbt_api int slbt_ectx_get_exec_ctx (const struct slbt_driver_ctx *, struct slbt_exec_ctx **); slbt_api void slbt_ectx_free_exec_ctx (struct slbt_exec_ctx *); |