Re: [PATCH v2 BlueZ 1/2] obexd/map: Do not send parent folder in dummy

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

 



Hi Sathish,

On Mon, Jun 12, 2017 at 1:19 PM,  <nsathish41@xxxxxxxxx> wrote:
> From: Sathish Narasimman <sathish.narasimman@xxxxxxxxx>
>
> In messages-dummy it is not necessary to add parent folder in the
> response to folder-lisintg. when tested with some carkit the present
> method is not working when navigating to different folders. so removing
> it.
> ---
>  obexd/plugins/messages-dummy.c | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/obexd/plugins/messages-dummy.c b/obexd/plugins/messages-dummy.c
> index 765f08d..33056e2 100644
> --- a/obexd/plugins/messages-dummy.c
> +++ b/obexd/plugins/messages-dummy.c
> @@ -155,16 +155,6 @@ static void return_folder_listing(struct folder_listing_data *fld, GSList *list)
>         uint16_t num = 0;
>         uint16_t offs = 0;
>
> -       /* XXX: This isn't really documented for MAP. I need to take a look how
> -        * other implementations choose to deal with parent folder.
> -        */
> -       if (session->cwd[0] != 0 && fld->offset == 0) {
> -               num++;
> -               fld->callback(session, -EAGAIN, 0, "..", fld->user_data);
> -       } else {
> -               offs++;
> -       }
> -
>         for (cur = list; offs < fld->offset; offs++) {
>                 cur = cur->next;
>                 if (cur == NULL)
> --
> 2.7.4

Applied, thanks.

-- 
Luiz Augusto von Dentz
--
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