30 lines
316 B
C++
Raw Normal View History

2014-09-16 22:42:47 +03:00
#include "interface/module.h"
2014-09-16 23:14:04 +03:00
#include "interface/server.h"
2014-09-16 22:42:47 +03:00
2014-09-16 23:14:04 +03:00
struct Module: public interface::Module
2014-09-16 22:42:47 +03:00
{
2014-09-16 23:14:04 +03:00
Module()
{
}
2014-09-16 22:42:47 +03:00
2014-09-16 23:14:04 +03:00
~Module()
{
}
2014-09-16 22:42:47 +03:00
void start()
{
}
2014-09-16 23:14:04 +03:00
int test_add(int a, int b)
{
return a + b;
}
};
extern "C" {
EXPORT void* createModule(interface::Server *server)
2014-09-16 22:42:47 +03:00
{
2014-09-16 23:14:04 +03:00
return (void*)(new Module());
}
2014-09-16 22:42:47 +03:00
}