/* This file implements a Dummy Robot driver using * the new Nero Robo driver scheme */ #include "DummyDriverConfig.h" #include "DummyDriverFirmwareCheck.h" #ifdef WIN32 /* Let Windows have it's sick ways */ BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { return TRUE; }; #endif const char *NERO_PLUGIN_GetPluginName() { return DUMMYDRIVER_ID; }; DWORD NERO_PLUGIN_GetVersion() { return (DUMMYDRIVER_MAJOR<<16)+DUMMYDRIVER_MINOR; }; DWORD NERO_PLUGIN_GetInterfaceVersion() { return ROBODRIVER_CURRENTVERSION; }; const char *NERO_PLUGIN_GetPluginType() { return ROBODRIVER_PLUGINTYPE; }; void NERO_PLUGIN_SetVendorInformations(const char *szCompany, const char *szProductName) { /* Just a dummy, we don't need this */ }; CNeroRoboDriver *nerorobodriver_createdriver(IRoboCommNode *commnode) { return new CDummyRoboDriver(commnode); }; void nerorobodriver_configuredriver(IUserDialogFactory *pDialogFactory) { CDummyRoboDriverConfig dummyConfig(pDialogFactory); dummyConfig.Exec(); } CNeroRoboDriver *nerorobodriverV2_createdriver(IRoboCommNode *pCommNode, const char *pcRecorderName) { return nerorobodriver_createdriver(pCommNode); } void nerorobodriverV2_configuredriver(IUserDialogFactory *pDialogFactory, const char *pcRecorderName) { nerorobodriver_configuredriver(pDialogFactory); } CNeroRoboFirmwareCheck *nerorobodriver_firmwarecheck(CSerial *pInterface) { return new CDummyRoboDriverFirmwareCheck(pInterface); }