aboutsummaryrefslogtreecommitdiffstats
path: root/agenda_entry.h
diff options
context:
space:
mode:
authorEl-BG-1970 <elouan.gros.fr@gmail.com>2021-10-13 11:58:17 +0200
committerEl-BG-1970 <elouan.gros.fr@gmail.com>2021-10-13 11:58:17 +0200
commit8140d75aeb50e45aaa2d4ce34bfc84509fd2e91d (patch)
treed8101114f28661364135f73ad72595c258b33d60 /agenda_entry.h
downloadorg-to-conky-8140d75aeb50e45aaa2d4ce34bfc84509fd2e91d.tar.gz
first commit
Diffstat (limited to 'agenda_entry.h')
-rw-r--r--agenda_entry.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/agenda_entry.h b/agenda_entry.h
new file mode 100644
index 0000000..49a141b
--- /dev/null
+++ b/agenda_entry.h
@@ -0,0 +1,29 @@
+#ifndef __AGENDA_ENTRY_H__
+#include <stdlib.h>
+#include <string.h>
+#include "date.h"
+
+typedef struct entry {
+ //struct entry *parent;
+ //struct entry *children;
+ //int8_t level;// nesting level of the entry
+ //char *todo; // TODO keyword
+ char *tag; // tag keyword
+ char *title; // the actual entry
+ //char *text; // description (if there is one)
+ Date date; // scheduled or deadline date
+} entry;
+
+char *next_word(char *str);
+char *next_line(char *str);
+char *next_entry(char *str);
+
+entry read_agenda_entry(char *agenda);
+char *format_entry(entry e);
+
+void sort_entry_array(entry *arr, int n);
+void print_entry(entry e);
+void destroy_entry(entry e);
+
+#define __AGENDA_ENTRY_H__
+#endif