diff options
author | June McEnroe <june@causal.agency> | 2018-11-24 23:41:11 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-11-24 23:41:11 -0500 |
commit | 89c9ceded12d3e31a45a81a94d9035a476719d17 (patch) | |
tree | 6ce1a41b2e760a2fe75a7a7982919916d6d3f176 /bin/edi/edi.h | |
parent | Add premature serialization to edi (diff) | |
download | src-89c9ceded12d3e31a45a81a94d9035a476719d17.tar.gz src-89c9ceded12d3e31a45a81a94d9035a476719d17.zip |
Implement deserialization in edi
Diffstat (limited to '')
-rw-r--r-- | bin/edi/edi.h | 13 |
1 files changed, 10 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. */ -#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <wchar.h> @@ -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; |