server: add char_device.h header, use in reds.c

This commit is contained in:
Alon Levy 2010-08-31 12:42:30 +03:00
parent 14f2b0f52a
commit 673ade8a6f
2 changed files with 12 additions and 4 deletions

11
server/char_device.h Normal file
View File

@ -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__

View File

@ -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,