diff options
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/entry.h b/src/entry.h index e22a737..819c1cc 100644 --- a/src/entry.h +++ b/src/entry.h @@ -9,6 +9,7 @@ // a group/category for entries to be put in typedef struct { int id; // id from database + int group_id; // id of corresponding group struct tm due_date; char alt_due_date[BUF_LEN]; char title[BUF_LEN]; @@ -20,6 +21,7 @@ typedef struct { // getters int entry_get_id(Entry *e); +int entry_get_group_id(Entry *e); struct tm entry_get_due_date(Entry *e); char *entry_get_alt_due_date(Entry *e); char *entry_get_title(Entry *e); @@ -30,6 +32,7 @@ char *entry_get_url(Entry *e); // setters void entry_set_id(Entry *e, int id); +void entry_set_group_id(Entry *e, int id); void entry_set_due_date(Entry *e, struct tm due_date); void entry_set_alt_due_date(Entry *e, char *alt_due_date); void entry_set_title(Entry *e, char *title); |