summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2012-11-06 12:37:15 +0200
committerArnon Gilboa <agilboa@redhat.com>2012-11-14 10:50:51 +0200
commit5f1e7630ae7ea11dc6e95a8bd57a4396dfd69428 (patch)
tree8c8549332d9e26cf45de266c475e56eff10c6dfd
parent22d25256fd25eebb6dea608164d24ed3970e4c31 (diff)
vdagent: remove pipe common defs
-rw-r--r--common/vdcommon.h31
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