summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-03-08 14:30:50 -0500
committermidipix <writeonce@midipix.org>2016-03-10 08:32:39 -0500
commit528799aa1ab548dc649befeb9fa81f0d83f14a50 (patch)
tree64ea8f8d65152aff251c68bdb56c5ac115db174c /include
parenta288c4f46e5e7d9c3e643a13572cda4c601d76dd (diff)
downloadslibtool-528799aa1ab548dc649befeb9fa81f0d83f14a50.tar.bz2
slibtool-528799aa1ab548dc649befeb9fa81f0d83f14a50.tar.xz
slbt_get_exec_ctx(), slbt_free_exec_ctx(): initial implementation.
Diffstat (limited to 'include')
-rw-r--r--include/slibtool/slibtool.h13
1 files changed, 13 insertions, 0 deletions
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 <stdint.h>
+#include <stddef.h>
#include <stdio.h>
+#include <unistd.h>
#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 *);