diff options
author | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-04 03:57:23 +0200 |
---|---|---|
committer | Ariadna Vigo <arivigodr@gmail.com> | 2020-07-04 03:57:23 +0200 |
commit | b89dbe00ecc7a64e57a9293077edc7dbe734e2d7 (patch) | |
tree | d1f528f5e2c215307b78a957d978d626fa911a93 /tasklst.h | |
parent | 09298c5c5dd328a2f1e5108938c9586be6a3485e (diff) |
Expiration now configurable by user
Diffstat (limited to 'tasklst.h')
-rw-r--r-- | tasklst.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2,7 +2,6 @@ #define TASK_LST_MAX_NUM 11 #define TASK_LST_DESC_MAX_SIZE 64 -#define TASK_LST_EXPIRY 86400 /* 86400 secs = 24 hrs */ enum { TASK_VOID, @@ -17,7 +16,7 @@ typedef struct { } TaskLst; void tasklst_init(TaskLst *tasks); -void tasklst_set_expiration(TaskLst *tasks); +void tasklst_set_expiration(TaskLst *tasks, int64_t delta); int tasklst_expired(TaskLst tasks); int tasklst_tasks_total(TaskLst tasks); int tasklst_tasks_todo(TaskLst tasks); |