X-Git-Url: https://git.danieliu.xyz/?p=taskasaur.git;a=blobdiff_plain;f=headers%2Fparser.h;h=e924f3ed96d8610f3190b57d74674c5d9d3774d2;hp=45063647bc99cc6a3a3dad42b1d677a80b2aa527;hb=afa94c9493bdb91807c1dc2b4e1ffddbe2df1fd6;hpb=a38733c9e166c01710e1732cd6f6354313eb35ea diff --git a/headers/parser.h b/headers/parser.h index 4506364..e924f3e 100644 --- a/headers/parser.h +++ b/headers/parser.h @@ -8,6 +8,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + typedef enum SubTaskState { SubTaskState_todo, SubTaskState_done @@ -39,8 +43,11 @@ typedef struct Board { } Board; extern Board* begin_parse(char* board_path); -extern int begin_write(Board* Board); - +extern int begin_write(char* board_path, Board* board); extern void log_todo(Board* board); +#ifdef __cplusplus +} +#endif + #endif