2002-10-16 18:55:10 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "main.h"
|
2002-10-17 10:48:05 +04:00
|
|
|
#define _buildsym(sym) module1_LTX_##sym
|
2002-10-16 18:55:10 +04:00
|
|
|
#include "modules.h"
|
|
|
|
|
|
|
|
class ModuleGadget* module_init ()
|
|
|
|
{
|
|
|
|
printf ("module1 init for main version %s\n", version_string);
|
|
|
|
register_module ("module1");
|
|
|
|
return new ModuleGadget ("FancyCellPhone", "Caller ID, Video Conferencing");
|
|
|
|
}
|
|
|
|
|
|
|
|
int operate (int a, int b)
|
|
|
|
{
|
|
|
|
return a + b;
|
|
|
|
}
|
|
|
|
|
|
|
|
//////// ModuleGadget class methods
|
|
|
|
ModuleGadget::ModuleGadget(const char* name, const char* features)
|
|
|
|
{
|
|
|
|
this->name = name;
|
|
|
|
this->features = features;
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* ModuleGadget::getName ()
|
|
|
|
{
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
const char* ModuleGadget::getFeatures ()
|
|
|
|
{
|
|
|
|
return features;
|
|
|
|
}
|