plugin.cpp 313 字节
Newer Older
V
v_zhangshouxu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include "input_result_zmq.h"
#include <pipe/pipe_controller.hpp>

PipeController g_controllor;

extern "C"{

void LOAD_PLUGIN(){
    g_controllor.add_element<InputResultZmqElement>();
}

void RUN_PLUGIN(){
    g_controllor.start();
}

void UNLOAD_PLUGIN(){
    g_controllor.stop();
    g_controllor.wait();
}

}