summaryrefslogtreecommitdiffstats
path: root/lib/controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/controller.h')
-rw-r--r--lib/controller.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/controller.h b/lib/controller.h
new file mode 100644
index 0000000..8ad7756
--- /dev/null
+++ b/lib/controller.h
@@ -0,0 +1,15 @@
+#ifndef CONTROLLER_H
+#define CONTROLLER_H
+
+#include "./common.h"
+
+void controller_init(const char* srv_addr, const char* srv_port, int min_conn, int max_conn);
+void controller_finish();
+
+void controller_start();
+void controller_wait();
+
+int controller_yield_task(const char* data, size_t size);
+int controller_get_result(const char** res, size_t* size);
+
+#endif // CONTROLLER_H