Commit Graph

8 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
ee6f3a837e shared/shell: Fix not handling prompt with color properly
Colors use escape sequence that needs to be enveloped with
RL_PROMPT_START_IGNORE (\001) and RL_PROMPT_END_IGNORE (\002) in order
for readline to properly calculate the prompt length.

Fixes: https://github.com/bluez/bluez/issues/965
2024-10-17 10:00:02 -04:00
Ismael Luceno
cd1c6b666f Fix missing inclusion of <limits.h>
Needed for PATH_MAX.
2024-09-19 13:01:07 -04:00
Luiz Augusto von Dentz
17623000ef client/mgmt: Add missing settings strings
This adds "iso-broadcaster" and "sync-receiver" which were missing.
2024-02-02 10:10:38 -05:00
Emil Velikov
af552cd906 lib: const annotate hci_map instances and related API 2024-01-19 15:45:07 -05:00
Emil Velikov
20864af937 client: annotate struct option instances as const 2024-01-19 15:44:07 -05:00
Vinit Mehta
60d60166e4 mgmt: Fix crash after pair command
After pair command, if the user doesn't provide any input on bluetoothctl
CLI interface after receiving the prompt(yes/no) below crash is observed:

dbus[782]: arguments to dbus_message_get_no_reply() were incorrect,
assertion "message != NULL" failed in file
/usr/src/debug/dbus/1.14.10-r0/dbus/dbus-message.c line 3250.
This is normally a bug in some application using the D-Bus library.
/usr/lib/libc.so.6(+0x27534) [0xffffa1b67534]
/usr/lib/libc.so.6(__libc_start_main+0x9c) [0xffffa1b6760c]
bluetoothctl(+0x188f0) [0xaaaac9c088f0]
Aborted (core dumped)
2024-01-03 15:59:23 -05:00
Luiz Augusto von Dentz
9741e47aeb client/mgmt: Fix registering pairing callbacks
Don't register pairing callbacks until mgmt.pair is called otherwise it
may take over the role of pairing agent when bluetoothctl agent is in
use.
2023-10-03 14:15:12 -07:00
Luiz Augusto von Dentz
2b063f47ab client: Add support for mgmt submenu
This moves the functionality of btmgmt into client/mgmt.c so its
commands become available on bluetoothctl via mgmt submenu.
2023-07-14 15:14:02 -07:00