[Spice-devel] [PATCH 02/12] server: add char_device.h header, use in reds.c
Alon Levy
alevy at redhat.com
Wed Oct 27 09:36:43 PDT 2010
---
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 0000000..486df6f
--- /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 7ab4925..61296b6 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,
--
1.7.3.1
More information about the Spice-devel
mailing list