From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Plugins/SDK/burner/BurnerCommon.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Src/Plugins/SDK/burner/BurnerCommon.cpp (limited to 'Src/Plugins/SDK/burner/BurnerCommon.cpp') diff --git a/Src/Plugins/SDK/burner/BurnerCommon.cpp b/Src/Plugins/SDK/burner/BurnerCommon.cpp new file mode 100644 index 00000000..933b8862 --- /dev/null +++ b/Src/Plugins/SDK/burner/BurnerCommon.cpp @@ -0,0 +1,25 @@ +#include "BurnerCommon.h" +#include "api.h" +#include + +BurnerCommon::BurnerCommon(obj_primo *_primo) +{ + primo = _primo; + triggerEvent=0; + triggerEvent = CreateEvent(NULL, FALSE, FALSE, NULL); +} + +BurnerCommon::~BurnerCommon() +{ + if (triggerEvent) + CloseHandle(triggerEvent); + + waServiceFactory *sf = WASABI_API_SVC->service_getServiceByGuid(obj_primo::getServiceGuid()); + if (sf) sf->releaseInterface(primo); +} + +void BurnerCommon::TriggerCallback() +{ + if (triggerEvent) + SetEvent(triggerEvent); +} \ No newline at end of file -- cgit