mesytec-mnode/src/mana_plugin_c_test.c

37 lines
724 B
C
Raw Normal View History

#include "internal/mana_api.h"
#include <string.h>
struct Context
{
};
struct Context ctx_;
MANA_DEFINE_PLUGIN_INIT(init)
{
memset(&ctx_, 0, sizeof(ctx_));
return &ctx_;
}
MANA_DEFINE_PLUGIN_SHUTDOWN(shutdown) {}
MANA_DEFINE_PLUGIN_BEGIN_RUN(begin_run) {}
MANA_DEFINE_PLUGIN_END_RUN(end_run) {}
MANA_DEFINE_PLUGIN_EVENT_DATA(process_event) {}
MANA_DEFINE_PLUGIN_SYSTEM_EVENT(process_system_event) {}
MANA_DEFINE_GET_PLUGIN(mana_get_plugin)
{
mana_plugin_t plugin;
plugin.init = init;
plugin.shutdown = shutdown;
plugin.begin_run = begin_run;
plugin.end_run = end_run;
plugin.process_event = process_event;
plugin.process_system_event = process_system_event;
return plugin;
}