[Spice-devel] [PATCH 4/5] vdagent: remove pipe common defs
Arnon Gilboa
agilboa at redhat.com
Wed Nov 7 05:19:50 PST 2012
---
common/vdcommon.h | 31 -------------------------------
1 files changed, 0 insertions(+), 31 deletions(-)
diff --git a/common/vdcommon.h b/common/vdcommon.h
index 394333b..e50f2b0 100644
--- a/common/vdcommon.h
+++ b/common/vdcommon.h
@@ -32,19 +32,8 @@ typedef CRITICAL_SECTION mutex_t;
#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)
#define VD_AGENT_REGISTRY_KEY "SOFTWARE\\Red Hat\\Spice\\vdagent\\"
-enum {
- VD_AGENT_COMMAND,
- VD_AGENT_RESET,
- VD_AGENT_RESET_ACK,
- VD_AGENT_QUIT,
- VD_AGENT_SESSION_LOGON,
-};
-
#if defined __GNUC__
#define ALIGN_GCC __attribute__ ((packed))
#define ALIGN_VC
@@ -57,25 +46,5 @@ enum {
#define swprintf_s(buf, sz, format...) swprintf(buf, format)
#endif
-typedef struct ALIGN_VC VDPipeMessage {
- uint32_t type;
- uint32_t opaque;
- uint32_t size;
- uint8_t data[0];
-} ALIGN_GCC VDPipeMessage;
-
-typedef struct VDPipeBuffer {
- OVERLAPPED overlap;
- DWORD start;
- DWORD end;
- uint8_t data[VD_PIPE_BUF_SIZE];
-} VDPipeBuffer;
-
-typedef struct VDPipeState {
- HANDLE pipe;
- VDPipeBuffer write;
- VDPipeBuffer read;
-} VDPipeState;
-
#endif
--
1.7.4.1
More information about the Spice-devel
mailing list