summaryrefslogtreecommitdiff
path: root/src/entry.h
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-07-01 17:30:24 -0700
committerLouie S <louie@example.com>2023-07-01 17:30:24 -0700
commita92d5ac3d3858bb356e752065594e90c8b2203d9 (patch)
treeaab7bc2fbc42717248bf09a610c205e67d5d665e /src/entry.h
parent3fc10846ca2d1b42b596fbf3d719abc1d6608c94 (diff)
Database initialization
Diffstat (limited to 'src/entry.h')
-rw-r--r--src/entry.h5
1 files changed, 5 insertions, 0 deletions
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 <stdbool.h>
+
#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