diff req.h @ 0:f1de39079243

misc: initial import
author David Demelier <markand@malikania.fr>
date Mon, 07 Jun 2021 09:41:37 +0200
parents
children 5afdb14df924
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/req.h	Mon Jun 07 09:41:37 2021 +0200
@@ -0,0 +1,37 @@
+#ifndef SCI_REQ_H
+#define SCI_REQ_H
+
+/* TODO: remove reference to db structures. */
+
+#include <stddef.h>
+
+struct req {
+	int status;
+	char msg[1024];
+};
+
+struct worker;
+struct project;
+
+int
+req_connect(const char *);
+
+struct req
+req_job_queue(const char *, const char *);
+
+struct req
+req_project_add(const struct project *);
+
+struct req
+req_project_list(struct project *, size_t *);
+
+struct req
+req_worker_add(const struct worker *);
+
+struct req
+req_worker_list(struct worker *, size_t *);
+
+void
+req_finish(void);
+
+#endif /* !SCI_REQ_H */