summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-08-23 14:46:01 +0300
committerAlon Levy <alevy@redhat.com>2010-08-23 18:53:24 +0300
commita17ccbf323768c3cb977f0f062366ba7cf7f19db (patch)
tree64aa8afa9fbc5ff786bf2df47a199957d06a9f5e /common
parentc909771c0e6f7a529d0ec614d57dcd500b500990 (diff)
include path fixes because of spice-protcol updates
* mutex.h inlined into common/vdcommon.h * vdagent.h renamed to spice/vd_agent.h
Diffstat (limited to 'common')
-rw-r--r--common/vdcommon.h8
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)