X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=headers%2Fparser.h;h=1bf2ae374d86e2d7deae92d5ad5bd10ce8c66b7b;hb=8276ee5a5a1262b062d39c627c8c1abf9568c4fa;hp=f2a96322d4f557a499fcf6eabb3e6636a1f00deb;hpb=7c9d33c1eb0eb97911c7d1cd073cb70b53dedf62;p=taskasaur.git diff --git a/headers/parser.h b/headers/parser.h index f2a9632..1bf2ae3 100644 --- a/headers/parser.h +++ b/headers/parser.h @@ -1,9 +1,17 @@ +#ifndef __PARSER_H__ +#define __PARSER_H__ + #include #include #include +#include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef enum SubTaskState { SubTaskState_todo, SubTaskState_done @@ -34,6 +42,13 @@ typedef struct Board { int todolist_count; } Board; - extern Board* begin_parse(char* board_path); +extern int begin_write(char* board_path, Board* board); +extern void log_todo(Board* board); +extern int free_board(Board* board); + +#ifdef __cplusplus +} +#endif +#endif