diff options
Diffstat (limited to 'agenda_entry.h')
| -rw-r--r-- | agenda_entry.h | 29 |
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 |
