From ed729f994f55fe2bdbfa824689afab82d3ac87c7 Mon Sep 17 00:00:00 2001 From: mrfoxygmfr Date: Wed, 21 May 2025 02:35:58 +0300 Subject: feat(lib): implement controller and worker in library --- lib/controller.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 lib/controller.h (limited to 'lib/controller.h') 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 -- cgit mrf-deployment