From 673ade8a6fdfd9b9160f1ddc838f4ddcc80502ec Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 31 Aug 2010 12:42:30 +0300 Subject: [PATCH] server: add char_device.h header, use in reds.c --- server/char_device.h | 11 +++++++++++ server/reds.c | 5 +---- 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 server/char_device.h diff --git a/server/char_device.h b/server/char_device.h new file mode 100644 index 00000000..486df6fe --- /dev/null +++ b/server/char_device.h @@ -0,0 +1,11 @@ +#ifndef __CHAR_DEVICE_H__ +#define __CHAR_DEVICE_H__ + +#include "server/spice-experimental.h" + +struct SpiceCharDeviceState { + void (*wakeup)(SpiceCharDeviceInstance *sin); +}; + +#endif // __CHAR_DEVICE_H__ + diff --git a/server/reds.c b/server/reds.c index c7181ee5..ca6522d1 100644 --- a/server/reds.c +++ b/server/reds.c @@ -55,6 +55,7 @@ #include "demarshallers.h" #include "marshaller.h" #include "generated_marshallers.h" +#include "server/char_device.h" #ifdef USE_TUNNEL #include "red_tunnel_worker.h" #endif @@ -174,10 +175,6 @@ enum { VDI_PORT_READ_STATE_READ_DATA, }; -struct SpiceCharDeviceState { - void (*wakeup)(SpiceCharDeviceInstance *sin); -}; - void vdagent_char_device_wakeup(SpiceCharDeviceInstance *sin); struct SpiceCharDeviceState vdagent_char_device_state = { .wakeup = &vdagent_char_device_wakeup,