From 8140d75aeb50e45aaa2d4ce34bfc84509fd2e91d Mon Sep 17 00:00:00 2001 From: El-BG-1970 Date: Wed, 13 Oct 2021 11:58:17 +0200 Subject: first commit --- agenda_entry.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 agenda_entry.h (limited to 'agenda_entry.h') 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 +#include +#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 -- cgit v1.2.3