summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/ogAdmServer/sources/schedule.h
diff options
context:
space:
mode:
Diffstat (limited to 'admin/Sources/Services/ogAdmServer/sources/schedule.h')
-rw-r--r--admin/Sources/Services/ogAdmServer/sources/schedule.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/Sources/Services/ogAdmServer/sources/schedule.h b/admin/Sources/Services/ogAdmServer/sources/schedule.h
index f207afa5..061b5dbc 100644
--- a/admin/Sources/Services/ogAdmServer/sources/schedule.h
+++ b/admin/Sources/Services/ogAdmServer/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);