mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Lots of stuff
This commit is contained in:
22
PortabilityLayer/HostSuspendHook.cpp
Normal file
22
PortabilityLayer/HostSuspendHook.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "HostSuspendHook.h"
|
||||
#include "HostSuspendCallArgument.h"
|
||||
|
||||
namespace
|
||||
{
|
||||
static PortabilityLayer::HostSuspendHook_t gs_suspendHook;
|
||||
static void *gs_suspendContext;
|
||||
}
|
||||
|
||||
namespace PortabilityLayer
|
||||
{
|
||||
void InstallHostSuspendHook(HostSuspendHook_t hook, void *context)
|
||||
{
|
||||
gs_suspendHook = hook;
|
||||
gs_suspendContext = context;
|
||||
}
|
||||
|
||||
void SuspendApplication(HostSuspendCallID callID, const HostSuspendCallArgument *args, HostSuspendCallArgument *returnValue)
|
||||
{
|
||||
gs_suspendHook(gs_suspendContext, callID, args, returnValue);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user