summaryrefslogtreecommitdiffstats
path: root/lib/worker.h
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-21 02:35:58 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-21 02:35:58 +0300
commited729f994f55fe2bdbfa824689afab82d3ac87c7 (patch)
treed593ce59222b1aa3113a3cb1f8fef3d7466d8553 /lib/worker.h
parentb7fa22dfeb60e66a6ba5e0a6a554d0f056e09724 (diff)
feat(lib): implement controller and worker in library
Diffstat (limited to 'lib/worker.h')
-rw-r--r--lib/worker.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/worker.h b/lib/worker.h
new file mode 100644
index 0000000..12626a1
--- /dev/null
+++ b/lib/worker.h
@@ -0,0 +1,11 @@
+#ifndef WORKER_H
+#define WORKER_H
+
+#include "./common.h"
+
+typedef void (*worker_func_t)(const char* data, size_t size, char** result, size_t* result_size);
+
+void worker_init(const char* cntr_addr, const char* cntr_port, int num_cpu, worker_func_t func);
+void worker_exec();
+
+#endif // WORKER_H