//
|
// Created by Scheaven on 2020/4/26.
|
//
|
|
#ifndef H_INTERFACE_H
|
#define H_INTERFACE_H
|
#include "./core/ari_manager.h"
|
#include "config.h"
|
#ifdef __cplusplus
|
extern "C"{
|
#endif
|
|
#define API extern "C" __attribute__((visibility ("default")))
|
|
API void* create(const char *conf, int *max_chan);
|
API void release(void* handle);
|
API void* get_result(void *handle, const void *img, const int chan);
|
API void* get_result2(void *handle, const void *img, const int chan,const char* timestamp, const char* mode);
|
API void release_result(void *res);
|
|
void ReadJsonFromFile(const char* filename);
|
int setCamConfig(const char* data);
|
int ReadJsonStr(void* handle, const char* data);
|
|
void init_TResult(TResult *t);
|
|
#ifdef __cplusplus
|
}
|
#endif
|
#endif
|