summaryrefslogtreecommitdiffstats
path: root/sources/schedule.h
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-18 18:15:25 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-18 18:46:48 +0200
commit04ca20e9f1999d2c780043152cf233bcb1836d18 (patch)
treecca304b6d34723ec3a2a13e6745a874443ce5704 /sources/schedule.h
parent0b9465f783124340d85ff414c2ffb1dc40745f10 (diff)
#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.
Diffstat (limited to 'sources/schedule.h')
-rw-r--r--sources/schedule.h17
1 files changed, 17 insertions, 0 deletions
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