introduce the plugin definition
This commit is contained in:
42
src/ArrivalMANagerMain.cpp
Normal file
42
src/ArrivalMANagerMain.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Author:
|
||||
* Sven Czarnian <devel@svcz.de>
|
||||
* Brief:
|
||||
* Implements the entry functions for EuroScope
|
||||
* Copyright:
|
||||
* 2020-2021 Sven Czarnian
|
||||
* License:
|
||||
* GNU General Public License v3 (GPLv3)
|
||||
*/
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include "PlugIn.h"
|
||||
|
||||
using namespace arrivalmanager;
|
||||
|
||||
BOOL APIENTRY DllMain(HMODULE module, DWORD reason, LPVOID reserved) {
|
||||
(void)module;
|
||||
(void)reserved;
|
||||
|
||||
switch (reason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
case DLL_PROCESS_DETACH:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static PlugIn* __plugin = nullptr;
|
||||
|
||||
void __declspec(dllexport) EuroScopePlugInInit(EuroScopePlugIn::CPlugIn** ppPlugInInstance) {
|
||||
*ppPlugInInstance = __plugin = new PlugIn();
|
||||
}
|
||||
|
||||
void __declspec(dllexport) EuroScopePlugInExit() {
|
||||
if (nullptr != __plugin)
|
||||
delete __plugin;
|
||||
__plugin = nullptr;
|
||||
}
|
||||
Reference in New Issue
Block a user