summaryrefslogtreecommitdiff
path: root/src/task.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/task.h')
-rw-r--r--src/task.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/task.h b/src/task.h
index ffe93d7..4365c1c 100644
--- a/src/task.h
+++ b/src/task.h
@@ -51,14 +51,18 @@ x and y are integers as strings
id are an integer as a string
*/
-struct task {
+
+typedef struct {
int x, y;
int id;
std::string title;
std::string desc;
-};
+} task_t;
-typedef std::list<struct task> TaskList;
+typedef std::list<task_t> TaskList;
extern TaskList tasklist;
+task_t create_task(std::string title, std::string desc,
+ int x, int y);
+
#endif/*__MUNIA_TASK_H__*/