From 04ca20e9f1999d2c780043152cf233bcb1836d18 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 18 Jun 2020 18:15:25 +0200 Subject: #971 split into smaller file Split ogAdmServer into several files: * sources/rest.c that implements the server REST API. * sources/client.c that implements the client REST API. * sources/json.c that provides a few JSON helpers. --- sources/schedule.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'sources/schedule.h') diff --git a/sources/schedule.h b/sources/schedule.h index 8e0ab8a..14b8998 100644 --- a/sources/schedule.h +++ b/sources/schedule.h @@ -45,4 +45,21 @@ void og_schedule_refresh(struct ev_loop *loop); void og_schedule_run(unsigned int task_id, unsigned int schedule_id, enum og_schedule_type type); +int og_dbi_schedule_get(void); +int og_dbi_update_action(uint32_t id, bool success); + +struct og_task { + uint32_t task_id; + uint32_t procedure_id; + uint32_t command_id; + uint32_t center_id; + uint32_t schedule_id; + uint32_t type_scope; + uint32_t scope; + const char *filtered_scope; + const char *params; +}; + +int og_dbi_queue_procedure(struct og_dbi *dbi, struct og_task *task); + #endif -- cgit v1.2.3-18-g5258