summaryrefslogtreecommitdiffstats
path: root/sources/schedule.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-06 18:46:29 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit63c4ea5e12639c9a8118b9d8dafe68abd05dee27 (patch)
tree15537ff916b97d0fe5fee763e5d553078c9b75bf /sources/schedule.h
parent8fa9ec647ae2ebe71839d7ce8ca1c2624610eb72 (diff)
#942 add enum og_schedule_type
Diffstat (limited to 'sources/schedule.h')
-rw-r--r--sources/schedule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/schedule.h b/sources/schedule.h
index f207afa..061b5db 100644
--- a/sources/schedule.h
+++ b/sources/schedule.h
@@ -17,15 +17,21 @@ struct og_schedule_time {
uint32_t minutes;
};
+enum og_schedule_type {
+ OG_SCHEDULE_TASK,
+};
+
struct og_schedule {
struct list_head list;
struct ev_timer timer;
time_t seconds;
unsigned int task_id;
unsigned int schedule_id;
+ enum og_schedule_type type;
};
void og_schedule_create(unsigned int schedule_id, unsigned int task_id,
+ enum og_schedule_type type,
struct og_schedule_time *time);
void og_schedule_update(struct ev_loop *loop, unsigned int schedule_id,
unsigned int task_id, struct og_schedule_time *time);