[Spice-devel] [spice-gtk v4 17/24] file-xfer: Keep namespace of private function

Jonathon Jongsma jjongsma at redhat.com
Mon Jun 27 20:32:02 UTC 2016


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


On Thu, 2016-06-23 at 19:37 +0200, Victor Toso wrote:
> Rename:
> * file_xfer_close_cb -> spice_file_transfer_task_close_stream_cb
> 
> As this will be private to SpiceFileTransferTask
> ---
>  src/channel-main.c | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/src/channel-main.c b/src/channel-main.c
> index ef34daa..63f0b9b 100644
> --- a/src/channel-main.c
> +++ b/src/channel-main.c
> @@ -1840,9 +1840,9 @@ static void main_handle_agent_disconnected(SpiceChannel
> *channel, SpiceMsgIn *in
>  }
>  
>  /* main context */
> -static void file_xfer_close_cb(GObject      *object,
> -                               GAsyncResult *close_res,
> -                               gpointer      user_data)
> +static void spice_file_transfer_task_close_stream_cb(GObject      *object,
> +                                                     GAsyncResult *close_res,
> +                                                     gpointer      user_data)
>  {
>      SpiceFileTransferTask *self;
>      GError *error = NULL;
> @@ -2960,14 +2960,14 @@ static void
> spice_file_transfer_task_completed(SpiceFileTransferTask *self,
>          return;
>  
>      if (!self->file_stream) {
> -        file_xfer_close_cb(NULL, NULL, self);
> +        spice_file_transfer_task_close_stream_cb(NULL, NULL, self);
>          goto signal;
>      }
>  
>      g_input_stream_close_async(G_INPUT_STREAM(self->file_stream),
>                                 G_PRIORITY_DEFAULT,
>                                 self->cancellable,
> -                               file_xfer_close_cb,
> +                               spice_file_transfer_task_close_stream_cb,
>                                 self);
>      self->pending = TRUE;
>  signal:


More information about the Spice-devel mailing list