#include "interface/module.h" #include "interface/server.h" #include "interface/event.h" #include "test1/include/api.h" #include using interface::Event; namespace test2 { struct Module: public interface::Module { interface::Server *m_server; Event::Type m_EventType_core_start; Module(interface::Server *server): m_server(server), m_EventType_core_start(interface::getGlobalEventRegistry()->type("core:start")) { std::cout<<"test2 construct"<check_module("test1"); interface::Event event("test1:thing"); event.p.reset(new test1::Thing("Nakki")); m->event(event); } }; extern "C" { EXPORT void* createModule_test2(interface::Server *server){ return (void*)(new Module(server)); } } }