Re: [PATCH v2] client: Display address if calling 'disconnect' without arguments

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

 



Hi Mateusz,

On Sun, Jun 21, 2015 at 6:08 PM, Mateusz Lemusisk <mrlemux@xxxxxxxxx> wrote:
> Simplified the patch
> ---
>  client/main.c | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/client/main.c b/client/main.c
> index 41e95b2..f1a600f 100644
> --- a/client/main.c
> +++ b/client/main.c
> @@ -1421,7 +1421,12 @@ static void cmd_disconn(const char *arg)
>                 rl_printf("Failed to disconnect\n");
>                 return;
>         }
> +       if (strlen(arg) == 0) {
> +               DBusMessageIter iter;
>
> +               if (g_dbus_proxy_get_property(proxy, "Address", &iter) == TRUE)
> +                   dbus_message_iter_get_basic(&iter, &arg);
> +       }
>         rl_printf("Attempting to disconnect from %s\n", arg);
>  }
>
> --
> 2.4.2

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