diff options
Diffstat (limited to 'common/vdcommon.h')
-rw-r--r-- | common/vdcommon.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/vdcommon.h b/common/vdcommon.h index 2e4ed5d..8d4b4de 100644 --- a/common/vdcommon.h +++ b/common/vdcommon.h @@ -21,9 +21,15 @@ #pragma warning(disable:4200) #include <windows.h> -#include "vd_agent.h" +#include "spice/vd_agent.h" #include "vdlog.h" +typedef CRITICAL_SECTION mutex_t; + +#define MUTEX_INIT(mutex) InitializeCriticalSection(&mutex) +#define MUTEX_LOCK(mutex) EnterCriticalSection(&mutex) +#define MUTEX_UNLOCK(mutex) LeaveCriticalSection(&mutex) + #define VD_SERVICE_PIPE_NAME TEXT("\\\\.\\pipe\\vdservicepipe") #define VD_MESSAGE_HEADER_SIZE (sizeof(VDPipeMessage) + sizeof(VDAgentMessage)) #define VD_PIPE_BUF_SIZE (1024 * 1024) |