You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
proxysql/test/tap/test_helpers/fake_plugin.cpp

37 lines
528 B

#include "ProxySQL_Plugin.h"
#include <string>
namespace {
bool fake_init(ProxySQL_PluginServices *, std::string &) {
return true;
}
bool fake_start(std::string &) {
return true;
}
bool fake_stop() {
return true;
}
bool fake_status(std::string &) {
return true;
}
const ProxySQL_PluginDescriptor fake_descriptor = {
1,
"fake_plugin",
&fake_init,
&fake_start,
&fake_stop,
&fake_status,
};
} // namespace
extern "C" const ProxySQL_PluginDescriptor *proxysql_plugin_descriptor_v1() {
return &fake_descriptor;
}