[Spice-devel] [PATCH 02/13] server: add char_device.h header, use in reds.c
Alon Levy
alevy at redhat.com
Mon Dec 6 08:15:55 PST 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 c7181ee..ca6522d 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.2
More information about the Spice-devel
mailing list