| 88162c3c |
core: Update adapter.c code to match the new mgmt_send API |
Johan Hedberg |
13 years ago |
1 file, +6, -4 |
| 21c54f9a |
tools: Update mgmt-tester to use the new mgmt_send API |
Johan Hedberg |
13 years ago |
1 file, +27, -17 |
| c2c64bf3 |
core: Add index parameter to mgmt_request_func_t callback |
Johan Hedberg |
13 years ago |
2 files, +5, -3 |
| 5844a64f |
gdbus: Don't include just added interfaces in GetManagedObjects
If we received a call to ObjectManager.GetManagedObject we should not
include in the response the interfaces in data->added. This is because
it's not guaranteed that those interfaces will trigger an
InterfacesAdded signal, which is the case if the interface is removed in
the same mainloop iteration. |
Lucas De Marchi |
13 years ago |
1 file, +7, -1 |
| 04c71b2a |
gdbus: Simplify generated introspection
The generated introspection is not supposed to be read as is by human,
so there's no point in printing the indentation or writing more code to
use auto-close tags.
If it's desired to read the raw xml file, user can always use other
tools to transform the output such as "xmllint --format".
This also fixes a missing </property> when property is deprecated. |
Lucas De Marchi |
13 years ago |
1 file, +38, -65 |
| 5a1ec005 |
build: Do not use deprecated AM_CONFIG_HEADER
The long-obsoleted AM_CONFIG_HEADER macro was removed in automake 1.13.
Use AC_CONFIG_HEADERS instead. |
Lucas De Marchi |
13 years ago |
1 file, +1, -1 |
| 187da51f |
unit: Add tool for testing the SDP protocol PDUs |
Marcel Holtmann |
13 years ago |
3 files, +672, -0 |
| 84a3bed0 |
core: Reset access and service database pointers on shutdown |
Marcel Holtmann |
13 years ago |
1 file, +3, -0 |
| 46a5e190 |
core: Avoid using main_opts structure inside SDP service handling |
Marcel Holtmann |
13 years ago |
3 files, +11, -9 |
| d146d07c |
unit: Add simpler mgmt unit test utility |
Marcel Holtmann |
13 years ago |
3 files, +251, -0 |
| 3fef42da |
AVCTP: Replace calls to g_queue_free_full function
The function g_queue_free_full is available only from GLib 2.32.
If BlueZ has to build against GLib 2.28, as stated in the configure.ac,
this patch replaces the calls to g_queue_free_full in the AVTCP module
with its body, taken from the sources of GLib 2.32. |
Giovanni Gherdovich |
13 years ago |
1 file, +8, -6 |
| f1594be1 |
core: Replace calls to g_queue_free_full function
The function g_queue_free_full is available only from GLib 2.32.
If BlueZ has to build against GLib 2.28, as stated in the configure.ac,
this patch replaces the calls to g_queue_free_full in the "core" BlueZ module
with its body, taken from the sources of GLib 2.32. |
Giovanni Gherdovich |
13 years ago |
1 file, +9, -1 |
| 8787294e |
attrib-server: Fix invalid device access
When the device is not found, the channel attach must fail. |
Paulo Borges |
13 years ago |
1 file, +8, -2 |
| 38910f4f |
core: Use btohs when special alignment handling is not needed |
Johan Hedberg |
13 years ago |
1 file, +3, -3 |
| f478b0d4 |
core: Add adapter.c stubs for index added/removed events |
Johan Hedberg |
13 years ago |
1 file, +17, -0 |
| 19dde9d7 |
core: Add initial mgmt_read_index_list support to adapter.c |
Johan Hedberg |
13 years ago |
1 file, +34, -0 |
| b8051dd0 |
core: Add initial mgmt version reading to adapter.c |
Johan Hedberg |
13 years ago |
1 file, +27, -0 |
| 54a109e8 |
core: Remove redundant mgmt_unregister_all call (handled by unref) |
Johan Hedberg |
13 years ago |
1 file, +0, -1 |
| 4154ec0f |
input: Fix closing sockets when ioctl_connadd() fails
Instead of calling close() directly, properly shutdown the channel and
set GIOChannel pointers to NULL.
Fixes this error detected when HIDP support is disabled on kernel and we
attempt to connect to a BT keyboard:
bluetoothd[5168]: profiles/input/device.c:encrypt_notify()
bluetoothd[5168]: ioctl_connadd(): Protocol not supported(93)
bluetoothd[5168]: profiles/input/device.c:ctrl_watch_cb() Device
CA:FE:CA:FE:CA:FE disconnected
(bluetoothd:5168): GLib-WARNING **: Invalid file descriptor.
bluetoothd[5168]: profiles/input/device.c:intr_watch_cb() Device
CA:FE:CA:FE:CA:FE disconnected
(bluetoothd:5168): GLib-WARNING **: Invalid file descriptor. |
Anderson Lizardo |
13 years ago |
1 file, +20, -6 |
| 5de25e03 |
input: Minor whitespace fixes |
Anderson Lizardo |
13 years ago |
1 file, +2, -2 |
| 7445d62f |
input: Remove unnecessary encrypt_completed() function
Its code is used only once, and can be made much simpler if moved to
encrypt_notify(). |
Anderson Lizardo |
13 years ago |
1 file, +10, -18 |
| b582cfab |
input: Remove unnecessary goto label
Instead, use "if (err < 0)" for error handling. |
Anderson Lizardo |
13 years ago |
1 file, +5, -8 |
| adbfbebd |
input: Use g_free() where appropriate
req->rd_data was allocated with g_try_malloc0(), therefore it should be
freed with g_free(). |
Anderson Lizardo |
13 years ago |
1 file, +2, -2 |
| ad5da41d |
input: Remove dead code from encrypt_completed()
"status" is always zero, so this code will never be reached. |
Anderson Lizardo |
13 years ago |
1 file, +0, -7 |
| 4963a4c6 |
core: Introduce initial hooks to new mgmt code for adapter.c |
Johan Hedberg |
13 years ago |
4 files, +39, -12 |
| b58a6519 |
core: Fix Device1.Connect() continuation even if one profile fails |
Johan Hedberg |
13 years ago |
1 file, +4, -4 |
| 5a9df8a3 |
core: Pass the mgmt settings directly to adapter_register() |
Johan Hedberg |
13 years ago |
3 files, +8, -14 |
| 7facee24 |
core: Move mgmt setting convenience macros to lib/mgmt.h |
Johan Hedberg |
13 years ago |
5 files, +48, -45 |
| eb0928ea |
core: Make btd_adapter_set_did private to adapter.c |
Johan Hedberg |
13 years ago |
2 files, +2, -6 |
| f2f382c2 |
core: Make adapter_setup private to adapter.c |
Johan Hedberg |
13 years ago |
2 files, +1, -3 |
| 0361ad97 |
core: Make adapter_remove private to adapter.c |
Johan Hedberg |
13 years ago |
2 files, +1, -2 |
| a18b0647 |
core: Make adapter_create private to adapter.c |
Johan Hedberg |
13 years ago |
2 files, +1, -2 |
| 0a67ad2c |
core: Remove manager.{c,h} |
Johan Hedberg |
13 years ago |
4 files, +0, -243 |
| 6e205c7b |
core: Move adapter list handling from manager.c to adapter.c |
Johan Hedberg |
13 years ago |
2 files, +96, -13 |
| 324c4d9a |
core: Remove useless manager.h includes |
Johan Hedberg |
13 years ago |
2 files, +0, -2 |
| a41611eb |
core: Prefer adapter_register/unregister over manager functions |
Johan Hedberg |
13 years ago |
1 file, +2, -4 |
| ce23721f |
core: Introduce new adapter_register/unregister() functions |
Johan Hedberg |
13 years ago |
2 files, +15, -0 |
| 143c325f |
neard: Prefer adapter_get_default() over manager function |
Johan Hedberg |
13 years ago |
1 file, +3, -4 |
| 4cb7c10d |
hostname: Prefer adapter_get_default() over manager function |
Johan Hedberg |
13 years ago |
1 file, +1, -2 |
| bdadf948 |
core: Introduce adapter_get_default() function |
Johan Hedberg |
13 years ago |
2 files, +6, -0 |
| 77677cd8 |
core: Prefer adapter_foreach over manager function |
Johan Hedberg |
13 years ago |
4 files, +8, -11 |
| 07b2d6f5 |
audio: Prefer adapter_foreach over manager function |
Johan Hedberg |
13 years ago |
1 file, +1, -3 |
| f632a0c4 |
hostname: Prefer adapter_foreach over manager function |
Johan Hedberg |
13 years ago |
1 file, +2, -2 |
| c94d2181 |
core: Introduce an adapter_foreach() function |
Johan Hedberg |
13 years ago |
3 files, +8, -2 |
| 07104395 |
core: Prefer adapter_find functions over manager ones |
Johan Hedberg |
13 years ago |
2 files, +3, -4 |
| 375f3883 |
health: Prefer adapter_find functions over manager ones |
Johan Hedberg |
13 years ago |
1 file, +1, -3 |
| 6e5ee2d7 |
audio: Prefer adapter_find functions over manager ones |
Johan Hedberg |
13 years ago |
2 files, +2, -4 |
| 303152ee |
core: Introduce adapter_find_by_id() function |
Johan Hedberg |
13 years ago |
3 files, +18, -12 |
| 4a45118a |
core: Introduce an adapter_find() function |
Johan Hedberg |
13 years ago |
2 files, +6, -0 |
| 8bc5f788 |
core: Introduce an adapter_cleanup() function |
Johan Hedberg |
13 years ago |
5 files, +10, -3 |