summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-06 08:28:32 -0500
committermidipix <writeonce@midipix.org>2016-11-10 23:35:31 -0500
commit76aabf2c240c67ede7734f544be94f64da2c55c5 (patch)
tree460af7b94992a3635b380e5cef0a5663c61a69a3 /include
parentd7ed3e2faf8e3bc1aeb1e7fed27cd8a1ff4b2290 (diff)
downloadperk-76aabf2c240c67ede7734f544be94f64da2c55c5.tar.bz2
perk-76aabf2c240c67ede7734f544be94f64da2c55c5.tar.xz
API redesign 6/10: pe_common_ctx: protect i/o members against direct modification.
Diffstat (limited to 'include')
-rw-r--r--include/perk/perk.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/perk/perk.h b/include/perk/perk.h
index 0b84349..459fffb 100644
--- a/include/perk/perk.h
+++ b/include/perk/perk.h
@@ -100,7 +100,10 @@ struct pe_server_ctx {
const char ** attrs;
};
-struct pe_common_ctx {
+struct pe_io_ctx {
+ int status;
+ int prot;
+ int mode;
int fdin;
int fdout;
int fderr;
@@ -108,11 +111,9 @@ struct pe_common_ctx {
int fdsrc;
int fddst;
int fdtmp;
- int prot;
- int mode;
- int status;
- ssize_t ioread;
- ssize_t iowrite;
+};
+
+struct pe_common_ctx {
uint64_t drvflags;
uint64_t actflags;
uint64_t fmtflags;
@@ -125,6 +126,7 @@ struct pe_common_ctx {
const struct pe_output_ctx * outctx;
const struct pe_linker_ctx * lnkctx;
const struct pe_server_ctx * srvctx;
+ const struct pe_io_ctx * ioctx;
};
struct pe_driver_ctx {