summaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-06-29 17:55:31 -0700
committerLouie S <louie@example.com>2023-06-29 17:55:31 -0700
commit4333cd2b11cc32fe75fa1ef31627c667bcc71327 (patch)
treec99a91f2bd95a5197cefce1286b2799c9e0ea0fb /src/entry.h
parent58a911618ad82507de8319615309a85341bdc014 (diff)
entry boilerplate
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/entry.h b/src/entry.h
new file mode 100644
index 0000000..eb3d88e
--- /dev/null
+++ b/src/entry.h
@@ -0,0 +1,25 @@
+#include "../config.h"
+
+// a group/category for entries to be put in
+typedef struct {
+ //TODO due_date
+ char alt_due_date[BUF_LEN];
+ char title[BUF_LEN];
+ char color[BUF_LEN]; // TODO consider making an enum
+ char highlight[BUF_LEN]; // TODO consider making an enum
+ char url[BUF_LEN];
+} Entry;
+
+// getters
+char *entry_get_alt_due_date(Entry *e);
+char *entry_get_title(Entry *e);
+char *entry_get_color(Entry *e);
+char *entry_get_highlight(Entry *e);
+char *entry_get_url(Entry *e);
+
+// setters
+void entry_set_alt_due_date(Entry *e, char *alt_due_date);
+void entry_set_title(Entry *e, char *title);
+void entry_set_color(Entry *e, char *color);
+void entry_set_highlight(Entry *e, char *highlight);
+void entry_set_url(Entry *e, char *url);