summaryrefslogtreecommitdiffstats
path: root/sources/schedule.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-05-12 12:47:02 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit894d8332f44f64f21d43f5c8e6ae2d2207351ec3 (patch)
tree10ebe645f82c952ee95c62b351a81e4569369229 /sources/schedule.h
parent63c4ea5e12639c9a8118b9d8dafe68abd05dee27 (diff)
#942 add command type to POST /schedule/create
Pass idcomando as task_id.
Diffstat (limited to 'sources/schedule.h')
-rw-r--r--sources/schedule.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sources/schedule.h b/sources/schedule.h
index 061b5db..e88c192 100644
--- a/sources/schedule.h
+++ b/sources/schedule.h
@@ -19,6 +19,7 @@ struct og_schedule_time {
enum og_schedule_type {
OG_SCHEDULE_TASK,
+ OG_SCHEDULE_COMMAND,
};
struct og_schedule {
@@ -38,6 +39,7 @@ void og_schedule_update(struct ev_loop *loop, unsigned int schedule_id,
void og_schedule_delete(struct ev_loop *loop, uint32_t schedule_id);
void og_schedule_next(struct ev_loop *loop);
void og_schedule_refresh(struct ev_loop *loop);
-void og_dbi_schedule_task(unsigned int task_id, unsigned int schedule_id);
+void og_schedule_run(unsigned int task_id, unsigned int schedule_id,
+ enum og_schedule_type type);
#endif