Re: [PATCH 1/3] Move phonebook_req_finalize

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

 



Hi Dmitriy,

On Wed, May 18, 2011 at 6:58 PM, Dmitriy Paliy <dmitriy.paliy@xxxxxxxxx> wrote:
> It is used in successive patch.
> ---
>  plugins/phonebook-tracker.c |   40 ++++++++++++++++++++--------------------
>  1 files changed, 20 insertions(+), 20 deletions(-)
>
> diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
> index 9431d8a..9c60ec3 100644
> --- a/plugins/phonebook-tracker.c
> +++ b/plugins/phonebook-tracker.c
> @@ -1905,26 +1905,6 @@ done:
>        return path;
>  }
>
> -void phonebook_req_finalize(void *request)
> -{
> -       struct phonebook_data *data = request;
> -
> -       DBG("");
> -
> -       if (!data)
> -               return;
> -
> -       /* canceling asynchronous operation on tracker if any is active */
> -       if (data->query_canc) {
> -               g_cancellable_cancel(data->query_canc);
> -               g_object_unref(data->query_canc);
> -       }
> -
> -       free_data_contacts(data);
> -       g_free(data->req_name);
> -       g_free(data);
> -}
> -
>  static gboolean find_checked_number(GSList *numbers, const char *number)
>  {
>        GSList *l;
> @@ -1996,6 +1976,26 @@ done:
>        return 0;
>  }
>
> +void phonebook_req_finalize(void *request)
> +{
> +       struct phonebook_data *data = request;
> +
> +       DBG("");
> +
> +       if (!data)
> +               return;
> +
> +       /* canceling asynchronous operation on tracker if any is active */
> +       if (data->query_canc) {
> +               g_cancellable_cancel(data->query_canc);
> +               g_object_unref(data->query_canc);
> +       }
> +
> +       free_data_contacts(data);
> +       g_free(data->req_name);
> +       g_free(data);
> +}
> +
>  void *phonebook_pull(const char *name, const struct apparam_field *params,
>                                phonebook_cb cb, void *user_data, int *err)
>  {
> --

It should be fine to have 1 and 2 together, it is less troublesome if
somebody is using git blame to check the history.

-- 
Luiz Augusto von Dentz
Computer Engineer
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux