summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-10-26core: Do not call the callback on btd_cancel_authorizationHEADmasterLuiz Augusto von Dentz1-1/+4
btd_cancel_authorization should work like g_source_remove and not attempt to reach the callback as its maybe already invalid or lead to double free situations such as this: Invalid write of size 4 at 0x13D480: connection_lost (avdtp.c:1102) by 0x13F37A: session_cb (avdtp.c:2281) by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x122B21: main (main.c:551) Address 0x6512ac0 is 32 bytes inside a block of size 1,184 free'd at 0x4A07786: free (vg_replace_malloc.c:446) by 0x4C8150E: g_free (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x13D4A9: connection_lost (avdtp.c:1216) by 0x13D55E: auth_cb (avdtp.c:2471) by 0x17E99A: service_auth_cancel (adapter.c:1021) by 0x183C67: btd_cancel_authorization (adapter.c:3358) by 0x13D477: connection_lost (avdtp.c:1098) by 0x13F37A: session_cb (avdtp.c:2281) by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x122B21: main (main.c:551)
2012-10-26core: Fix memory leakLuiz Augusto von Dentz1-0/+2
1,262 (64 direct, 1,198 indirect) bytes in 1 blocks are definitely lost in loss record 280 of 290 at 0x4A0881C: malloc (vg_replace_malloc.c:270) by 0x4C813FE: g_malloc (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C95801: g_slice_alloc (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C95D55: g_slice_alloc0 (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C746AA: g_key_file_new (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x18136C: load_config (adapter.c:2620) by 0x18353B: adapter_init (adapter.c:2708) by 0x17E62E: btd_manager_register_adapter (manager.c:337) by 0x191171: mgmt_event.part.36 (mgmt.c:1081) by 0x4C7B824: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BB57: ??? (in /usr/lib64/libglib-2.0.so.0.3200.4) by 0x4C7BF51: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3200.4)
2012-10-26AVRCP: Add support for settings changed eventLuiz Augusto von Dentz3-2/+88
This event can be registered by the CT to get notified when any setting is changed. Per spec every single setting must be sent so the CT can track settings being added or removed.
2012-10-26AVCTP: Reduce verbosity of PDU parsingLuiz Augusto von Dentz1-23/+0
This information is not really useful as debug and there are better tools for sniffing traffic such as hcidump and wireshark.
2012-10-26AVRCP: Fix not adding session to player's list of sessionsLuiz Augusto von Dentz1-1/+7
If the session is not added in the list if the player gets unregistered it will not be cleared from the session which might cause a crash if the tries to access it.
2012-10-26AVRCP: Don't respond with errors when no player is registeredLuiz Augusto von Dentz1-33/+85
Some devices w.g. Sony MW600 will stop using certain commands if an error happen, so the code now just fake a player and once a real player is registered it takes place of the fake one.
2012-10-26AVRCP: Fix using void * for metadata valuesLuiz Augusto von Dentz3-80/+42
This replaces get_metadata callback with get_string and get_uint32 which uses proper types as return.
2012-10-26control: Fix Control.Disconnect not generating any replyLuiz Augusto von Dentz1-18/+2
avctp_disconnect does disconnect immediatelly so there is no time to set the pending message.
2012-10-26network: Remove unnecessary field from connect_reqMikel Astiz1-6/+1
The device pointer in struct connect_req can be completely removed since the callback already receives such pointer, and the network_peer takes care of the device refcounting.
2012-10-25systemd: prevent duplicate logging messages in journalMarti Raudsepp1-0/+1
By default, both stdout and syslog messages go to the systemd journal, which results in duplicate messages being logged.
2012-10-25network: Add missing btd_device reference countingJohan Hedberg1-1/+4
2012-10-25input: Add profile .disconnectMikel Astiz1-0/+1
Add the disconnect hook to the btd_profile.
2012-10-25input: Expose internal disconnection APIMikel Astiz2-0/+22
Expose the same API exposed in D-Bus to disconnect devices.
2012-10-25input: Trivial function renameMikel Astiz1-2/+2
Use the local_ name prefix for functions implementing the D-Bus API.
2012-10-25network: Add network .connect and .disconnectMikel Astiz1-0/+99
Add the btd_profile hooks to connect and disconnect all three network roles.
2012-10-25network: Split Network into three btd_profileMikel Astiz1-19/+86
Split the possible roles into three different btd_profile instances, one role each, in accordance with the rest of the existing profiles.
2012-10-25network: Expose internal connection APIMikel Astiz2-48/+108
Separate the D-Bus code from the internal connection handling code, exposing an internal API in case some internal codepath/plugin is interested in using it.
2012-10-25network: Trivial function renameMikel Astiz1-6/+6
Avoid the connection_ prefix for local functions implementing the D-Bus API.
2012-10-25network: Specify id while registering serverMikel Astiz3-9/+8
Only one type of server is being installed (BNEP_SVC_NAP), but the server API actually supports having several of them. Therefore, it is more accurate to specify BNEP_SVC_NAP in the manager's side.
2012-10-25event: Remove write of LastSeen infoFrédéric Danis1-13/+0
2012-10-25adapter: Move storage names to cache directoryFrédéric Danis2-6/+99
2012-10-25TODO: Add entry to remove storage convertion functionFrédéric Danis1-0/+6
2012-10-25adapter: Move saved config to ini-file formatFrédéric Danis1-38/+168
Read and write config file in ini-file format. If the file can not be loaded, try to convert legacy configuration.
2012-10-25adapter: Read mode in storage at initFrédéric Danis5-51/+45
Mgmt interface allows to change connectable and discoverable adapter status even if the adapter is off. So both status are changed during adapter init. Remove on_mode from btd_adapter_get_mode(), as it is no more used. Update src/mgmt.c and plugins/neard.c
2012-10-25adapter: Read discoverable timeout in storage at initFrédéric Danis1-12/+7
2012-10-25adapter: Read pairable timeout in storage at initFrédéric Danis1-11/+10
2012-10-25adapter: Move pairable read to load_config()Frédéric Danis1-4/+4
2012-10-25adapter: Remove device class storageFrédéric Danis3-15/+7
2012-10-25adaptername: Retrieve config name from adapterFrédéric Danis1-2/+4
2012-10-25adapter: Read name in storage at initFrédéric Danis1-0/+13
2012-10-25doc: Add settings storage documentationFrédéric Danis1-0/+183
2012-10-23doc: Fix typo in media APIMichael Knudsen1-1/+1
2012-10-22doc: Add missing info of peripheral setting to mgmt APIJohan Hedberg1-0/+5
2012-10-22mgmt: Remove LE prefix from the peripheral settingJohan Hedberg3-3/+3
2012-10-22mgmt: Add support for LE peripheral modeJohan Hedberg5-7/+45
2012-10-22btmgmt: Add basic EIR parsingJohan Hedberg2-3/+15
2012-10-22core: Remove unnecessary include from glib-helper.cJohan Hedberg1-1/+0
2012-10-19sap: Fix connected property fetching when not connectedJohan Hedberg1-2/+6
2012-10-19attrib: Fix memory leak if att_data_list_alloc failsLudek Finstrle1-3/+9
Fix for memory leak which was introduced in commit f8619bef3406a2134082dc41c208105fe028c09f.
2012-10-19doc: Update Health to BlueZ 5Lucas De Marchi1-100/+98
Adapt to the new DBus.Properties and cleanup the format used in this documentation to be similar to the other profiles.
2012-10-19health: Convert HealthDevice to DBus.PropertiesLucas De Marchi1-30/+26
2012-10-19health: Convert HealthChannel to DBus.PropertiesLucas De Marchi1-32/+36
Also remove a needless strdup to send type property.
2012-10-19sap: Convert to DBus.PropertiesLucas De Marchi2-52/+18
2012-10-19sap: Fix usage of wrong struct in get_properties()Lucas De Marchi1-1/+2
2012-10-19input: Fix not sending PropertiesChanged signalLucas De Marchi1-9/+4
2012-10-19core: Update gdbus function callsLucas De Marchi2-94/+69
Done by the following semantic patch, with manual tweaks afterwards due to changes in 80-chars line breaks: // <smpl> @r1 @ expression E1; @@ g_dbus_pending_property_success( - E1, ...) @r2 @ expression E1; @@ g_dbus_pending_property_error( - E1, ...) @r3 @ expression E1; @@ g_dbus_pending_property_error_valist( - E1, ...) // </smpl>
2012-10-19gdbus: Remove connection from pending_property functionsLucas De Marchi2-20/+17
The reply to a DBus.Properties.Set() method call should go through the same D-Bus connection. Thus remove the DBusConnection parameter from the following functions: - g_dbus_pending_property_success() - g_dbus_pending_property_error_valist() - g_dbus_pending_property_error()
2012-10-18adapter: Fix memory leak on discovery cleanupAnderson Lizardo1-2/+2
During discovery cleanup, it was attempted to send a DevicesFound() D-Bus signal for pending found devices, but adapter->discovery was set to NULL before calling send_devices_found(), therefore it never sent any signal (and there was a leak of discovery->pending list). Fixes this memory leak when pairing two LE devices: ==1822== 8 bytes in 1 blocks are definitely lost in loss record 42 of 246 ==1822== at 0x482BE68: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==1822== by 0x48869AA: standard_malloc (gmem.c:85) ==1822== by 0x4886E42: g_malloc (gmem.c:159) ==1822== by 0x489B26D: g_slice_alloc (gslice.c:1003) ==1822== by 0x489C10A: g_slist_prepend (gslist.c:265) ==1822== by 0x1855AE: adapter_update_found_devices (adapter.c:2846) ==1822== by 0x191431: btd_event_device_found (event.c:260) ==1822== by 0xBC01001A: ??? ==1822==
2012-10-17test: List only specified adapter's devices in list-devicesJohan Hedberg1-0/+2
2012-10-17device: Fix modifying list while iteratingMikel Astiz1-2/+2
A list should not be modified while iterating on it, and in this case the solution is trivial: the code is just trying to free the whole list with a previous call to profile->device_remove() per list item.