From 89c9ceded12d3e31a45a81a94d9035a476719d17 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 24 Nov 2018 23:41:11 -0500 Subject: Implement deserialization in edi --- bin/edi/edi.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'bin/edi/edi.h') diff --git a/bin/edi/edi.h b/bin/edi/edi.h index f335d1bd..bdcc6496 100644 --- a/bin/edi/edi.h +++ b/bin/edi/edi.h @@ -14,7 +14,6 @@ * along with this program. If not, see . */ -#include #include #include #include @@ -94,8 +93,16 @@ struct Edit { struct Log log; }; -bool storeWrite(FILE *stream, const struct Edit *edit); -bool storeRead(FILE *stream, struct Edit *edit); +enum Error { + Ok, + StoreMagic, + StoreVersion, + StoreEOF, + Errno, +}; + +enum Error storeWrite(FILE *stream, const struct Edit *edit); +enum Error storeRead(FILE *stream, struct Edit *edit); struct File { char *path; -- cgit 1.4.1