From 88e83272a884b3acf62005a13d352781882f5cff Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 4 Dec 2015 20:43:04 -0500 Subject: API redesign 3/10: pe_common_ctx: protect the secondary context structures against direct modification. --- include/perk/perk.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/perk/perk.h') diff --git a/include/perk/perk.h b/include/perk/perk.h index de2ee57..e2001e1 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -121,10 +121,10 @@ struct pe_common_ctx { const char * srcdir; const char * dstdir; const char * tmpdir; - struct pe_symbol_ctx * symctx; - struct pe_output_ctx * outctx; - struct pe_linker_ctx * lnkctx; - struct pe_server_ctx * srvctx; + const struct pe_symbol_ctx * symctx; + const struct pe_output_ctx * outctx; + const struct pe_linker_ctx * lnkctx; + const struct pe_server_ctx * srvctx; }; struct pe_driver_ctx { -- cgit v1.2.3