13 lines
402 B
C++
13 lines
402 B
C++
#ifndef _MQ_WORKER_H_
|
|
#define _MQ_WORKER_H_
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
typedef int (*handler_fn)(const std::string &input_path,
|
|
const std::vector<uint8_t> &input,
|
|
std::string &output_path,
|
|
std::vector<uint8_t> &output);
|
|
int mq_worker(const char *topic, const char *worker_name, handler_fn handle_image);
|
|
|
|
#endif
|