Re: [PATCH 04/18] Rename vdi_port_read_buf_get() to match convention

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> From: Jonathon Jongsma <jjongsma@xxxxxxxxxx>
> 
> Since this is technically a RedsState method, name it as such.
> ---
>  server/reds.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/server/reds.c b/server/reds.c
> index 4ad8b0f..bff64d6 100644
> --- a/server/reds.c
> +++ b/server/reds.c
> @@ -174,7 +174,7 @@ static void reds_char_device_add_state(RedsState *reds,
> SpiceCharDeviceState *st
>  static void reds_char_device_remove_state(RedsState *reds,
>  SpiceCharDeviceState *st);
>  static void reds_send_mm_time(RedsState *reds);
>  
> -static VDIReadBuf *vdi_port_read_buf_get(RedsState *reds);
> +static VDIReadBuf *reds_get_vdi_port_read_buf(RedsState *reds);
>  static VDIReadBuf *vdi_port_read_buf_ref(VDIReadBuf *buf);
>  static void vdi_port_read_buf_unref(RedsState *reds, VDIReadBuf *buf);
>  
> @@ -647,7 +647,7 @@ static int vdi_port_read_buf_process(RedsState *reds, int
> port, VDIReadBuf *buf)
>      }
>  }
>  
> -static VDIReadBuf *vdi_port_read_buf_get(RedsState *reds)
> +static VDIReadBuf *reds_get_vdi_port_read_buf(RedsState *reds)
>  {
>      VDIPortState *state = &reds->agent_state;
>      RingItem *item;
> @@ -717,7 +717,7 @@ static SpiceCharDeviceMsgToClient
> *vdi_port_read_one_msg_from_device(SpiceCharDe
>              state->message_receive_len = state->vdi_chunk_header.size;
>              state->read_state = VDI_PORT_READ_STATE_GET_BUFF;
>          case VDI_PORT_READ_STATE_GET_BUFF: {
> -            if (!(state->current_read_buf = vdi_port_read_buf_get(reds))) {
> +            if (!(state->current_read_buf =
> reds_get_vdi_port_read_buf(reds))) {
>                  return NULL;
>              }
>              state->receive_pos = state->current_read_buf->data;
> @@ -1242,7 +1242,7 @@ static int reds_agent_state_restore(RedsState *reds,
> SpiceMigrateDataMain *mig_d
>              uint32_t cur_buf_size;
>  
>              agent_state->read_state = VDI_PORT_READ_STATE_READ_DATA;
> -            agent_state->current_read_buf = vdi_port_read_buf_get(reds);
> +            agent_state->current_read_buf =
> reds_get_vdi_port_read_buf(reds);
>              spice_assert(agent_state->current_read_buf);
>              partial_msg_header = (uint8_t *)mig_data +
>              mig_data->agent2client.msg_header_ptr -
>                  sizeof(SpiceMiniDataHeader);

Acked-by: Frediano Ziglio <fziglio@xxxxxxxxxx>

Frediano
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]