diff options
Diffstat (limited to 'Src/Plugins/SDK/burner/BurnerCommon.cpp')
-rw-r--r-- | Src/Plugins/SDK/burner/BurnerCommon.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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 <api/service/waservicefactory.h> + +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 |