From 528799aa1ab548dc649befeb9fa81f0d83f14a50 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 8 Mar 2016 14:30:50 -0500 Subject: slbt_get_exec_ctx(), slbt_free_exec_ctx(): initial implementation. --- include/slibtool/slibtool.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include') diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h index 312c7cd..97f3b49 100644 --- a/include/slibtool/slibtool.h +++ b/include/slibtool/slibtool.h @@ -2,7 +2,9 @@ #define SOFORT_H #include +#include #include +#include #include "slibtool_api.h" @@ -76,6 +78,14 @@ struct slbt_input { size_t size; }; +struct slbt_exec_ctx { + char * program; + char ** argv; + char ** envp; + pid_t pid; + int exitcode; +}; + struct slbt_common_ctx { uint64_t drvflags; uint64_t actflags; @@ -115,6 +125,9 @@ slbt_api void slbt_free_driver_ctx (struct slbt_driver_ctx *); slbt_api int slbt_get_unit_ctx (const struct slbt_driver_ctx *, const char * path, struct slbt_unit_ctx **); slbt_api void slbt_free_unit_ctx (struct slbt_unit_ctx *); +slbt_api int slbt_get_exec_ctx (const struct slbt_driver_ctx *, struct slbt_exec_ctx **); +slbt_api void slbt_free_exec_ctx (struct slbt_exec_ctx *); + slbt_api int slbt_map_input (int fd, const char * path, int prot, struct slbt_input *); slbt_api int slbt_unmap_input (struct slbt_input *); -- cgit v1.2.3