diff options
Diffstat (limited to 'src/entry.c')
-rw-r--r-- | src/entry.c | 8 |
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; } |