[Spice-devel] [PATCH spice-server 1/3] Move DispatcherMessage to source file

Frediano Ziglio fziglio at redhat.com
Mon Sep 4 10:09:44 UTC 2017


> 
> This is an internal implementation detail
> ---
>  server/dispatcher.c | 7 +++++++
>  server/dispatcher.h | 7 -------
>  2 files changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/server/dispatcher.c b/server/dispatcher.c
> index fe14a3fa5..4e03ea046 100644
> --- a/server/dispatcher.c
> +++ b/server/dispatcher.c
> @@ -38,6 +38,13 @@
>  static void setup_dummy_signal_handler(void);
>  #endif
>  
> +typedef struct DispatcherMessage {
> +    size_t size;
> +    int ack;
> +    dispatcher_handle_message handler;
> +} DispatcherMessage;
> +
> +
>  G_DEFINE_TYPE(Dispatcher, dispatcher, G_TYPE_OBJECT)
>  
>  #define DISPATCHER_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o),
>  TYPE_DISPATCHER, DispatcherPrivate))
> diff --git a/server/dispatcher.h b/server/dispatcher.h
> index 41b7389c7..97b01de9c 100644
> --- a/server/dispatcher.h
> +++ b/server/dispatcher.h
> @@ -64,13 +64,6 @@ typedef void (*dispatcher_handle_async_done)(void *opaque,
>                                               void *payload);
>  
>  
> -typedef struct DispatcherMessage {
> -    size_t size;
> -    int ack;
> -    dispatcher_handle_message handler;
> -} DispatcherMessage;
> -
> -
>  /*
>   * dispatcher_send_message
>   * @message_type: message type

Acked-by: Frediano Ziglio <fziglio at redhat.com>

Frediano


More information about the Spice-devel mailing list