From a92d5ac3d3858bb356e752065594e90c8b2203d9 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 1 Jul 2023 17:30:24 -0700 Subject: Database initialization --- src/entry.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index 2a9f38b..a2f637e 100644 --- a/src/entry.h +++ b/src/entry.h @@ -1,6 +1,8 @@ #ifndef ENTRY_H #define ENTRY_H +#include + #include "../config.h" // a group/category for entries to be put in @@ -10,6 +12,7 @@ typedef struct { char title[BUF_LEN]; char color[BUF_LEN]; // TODO consider making an enum char highlight[BUF_LEN]; // TODO consider making an enum + bool done; char url[BUF_LEN]; } Entry; @@ -18,6 +21,7 @@ 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); +bool entry_get_done(Entry *e); char *entry_get_url(Entry *e); // setters @@ -25,6 +29,7 @@ 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_done(Entry *e, bool done); void entry_set_url(Entry *e, char *url); #endif -- cgit