c0e249e993
This reverts commitdaf3b57e89
, reversing changes made to7a6e0b7d77
.
26 lines
No EOL
565 B
C++
26 lines
No EOL
565 B
C++
#pragma once
|
|
#include "stdafx.h"
|
|
#include "../Core/INotificationListener.h"
|
|
#include "../Core/NotificationManager.h"
|
|
|
|
typedef void(__stdcall *NotificationListenerCallback)(int, void*);
|
|
|
|
class InteropNotificationListener : public INotificationListener
|
|
{
|
|
NotificationListenerCallback _callback;
|
|
|
|
public:
|
|
InteropNotificationListener(NotificationListenerCallback callback)
|
|
{
|
|
_callback = callback;
|
|
}
|
|
|
|
virtual ~InteropNotificationListener()
|
|
{
|
|
}
|
|
|
|
void ProcessNotification(ConsoleNotificationType type, void* parameter)
|
|
{
|
|
_callback((int)type, parameter);
|
|
}
|
|
}; |