free board
[taskasaur.git] / headers / parser.h
index db4bf8b..1bf2ae3 100644 (file)
@@ -1,10 +1,17 @@
 
+#ifndef __PARSER_H__
+#define __PARSER_H__
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 #include <md4c.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef enum SubTaskState {
     SubTaskState_todo,
     SubTaskState_done
@@ -35,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