[Spice-devel] [PATCH 02/13] server: add char_device.h header, use in reds.c

Hans de Goede hdegoede at redhat.com
Tue Dec 7 02:12:45 PST 2010


Ack.

On 12/06/2010 05:15 PM, Alon Levy wrote:
> ---
>   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,


More information about the Spice-devel mailing list