From d7ed3e2faf8e3bc1aeb1e7fed27cd8a1ff4b2290 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 4 Dec 2015 22:56:15 -0500 Subject: API redesign 5/10: pe_unit_ctx: protect members against direct modification. --- include/perk/perk.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'include/perk/perk.h') diff --git a/include/perk/perk.h b/include/perk/perk.h index f19e596..0b84349 100644 --- a/include/perk/perk.h +++ b/include/perk/perk.h @@ -135,10 +135,12 @@ struct pe_driver_ctx { }; struct pe_unit_ctx { - const char * path; - struct pe_raw_image map; - struct pe_image_meta * meta; - struct pe_common_ctx cctx; + const char * const * path; + const struct pe_raw_image * map; + const struct pe_image_meta * meta; + const struct pe_common_ctx * cctx; + int status; + int nerrors; }; /* driver api */ -- cgit v1.2.3