Re: [PATCH BlueZ 3/4] tools/obexctl: Use bt_shell helpers

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

 



Hi Eramoto, Johan,

On Wed, Dec 6, 2017 at 8:51 AM, Johan Hedberg <johan.hedberg@xxxxxxxxx> wrote:
> Hi,
>
> On Wed, Dec 06, 2017, ERAMOTO Masaya wrote:
>> On 12/06/2017 03:33 AM, Luiz Augusto von Dentz wrote:
>> > This makes obexctl use bt_shell to manage the menus and command
>> > handling.
>> > ---
>> >  Makefile.tools  |   5 +-
>> >  tools/obexctl.c | 609 ++++++++++++++++----------------------------------------
>> >  2 files changed, 175 insertions(+), 439 deletions(-)
>>
>> The previous obexctl gives arguments included a command name to the command, but
>> bt_shell gives arguments excluded a command name. So you should fix argc/argv
>> related processes in each command. Also bt_shell automatically checks passed
>> arguments.
>> You can refer to the attached patch about these things.
>
> If you ask me, I think we should keep this consistent with obexctl and
> e.g. how main() gets called. I.e. argv[0] is the command. An added
> benefit of this is that two very similar commands (taking the same
> parameters) can use the same command handler, since they'll be able to
> distuinguish which command was used.

Yep, lets keep the command name then and fix bluetoothctl.

-- 
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