summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-07-03 11:30:38 -0700
committerLouie S <louie@example.com>2023-07-03 11:30:38 -0700
commitded510aedc6d1df4b34e1cca07847098fd94198b (patch)
treed0f089e68e94cccca9cd3e1bf23e274505f710c1 /src/entry.c
parenta3c635bc459ea6e05c62868ddd0ef3a097ae05dc (diff)
Add id to structs
Diffstat (limited to 'src/entry.c')
-rw-r--r--src/entry.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/entry.c b/src/entry.c
index f996a00..af4b8f4 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -3,6 +3,10 @@
#include "entry.h"
// getters
+int entry_get_id(Entry *e) {
+ return e->id;
+}
+
struct tm entry_get_due_date(Entry *e) {
return e->due_date;
}
@@ -33,6 +37,10 @@ char *entry_get_url(Entry *e) {
// setters
+void entry_set_id(Entry *e, int id) {
+ e->id = id;
+}
+
void entry_set_due_date(Entry *e, struct tm due_date) {
e->due_date = due_date;
}