mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
server: add char_device.h header, use in reds.c
This commit is contained in:
parent
14f2b0f52a
commit
673ade8a6f
11
server/char_device.h
Normal file
11
server/char_device.h
Normal 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__
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user