summaryrefslogtreecommitdiff
path: root/src/entry.c
diff options
context:
space:
mode:
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 2d5f7d0..f996a00 100644
--- a/src/entry.c
+++ b/src/entry.c
@@ -3,6 +3,10 @@
#include "entry.h"
// getters
+struct tm entry_get_due_date(Entry *e) {
+ return e->due_date;
+}
+
char *entry_get_alt_due_date(Entry *e) {
return e->alt_due_date;
}
@@ -29,6 +33,10 @@ char *entry_get_url(Entry *e) {
// setters
+void entry_set_due_date(Entry *e, struct tm due_date) {
+ e->due_date = due_date;
+}
+
void entry_set_alt_due_date(Entry *e, char *alt_due_date) {
strcpy(e->alt_due_date, alt_due_date);
}