diff options
Diffstat (limited to 'lib/worker.h')
-rw-r--r-- | lib/worker.h | 11 |
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 |