OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agomonitor: Add ATT read blob response decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:34:19 +0000 (12:34 +0700)]
monitor: Add ATT read blob response decoding support

11 years agomonitor: Add ATT read blob request decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:30:20 +0000 (12:30 +0700)]
monitor: Add ATT read blob request decoding support

11 years agomonitor: Add HCI LTK req reply command complete decoring support
Johan Hedberg [Fri, 7 Jun 2013 05:24:20 +0000 (12:24 +0700)]
monitor: Add HCI LTK req reply command complete decoring support

11 years agomonitor: Add HCI LTK request negative reply command decoding
Johan Hedberg [Fri, 7 Jun 2013 05:18:45 +0000 (12:18 +0700)]
monitor: Add HCI LTK request negative reply command decoding

11 years agomonitor: Add HCI LTK request reply command decoding
Johan Hedberg [Fri, 7 Jun 2013 05:15:23 +0000 (12:15 +0700)]
monitor: Add HCI LTK request reply command decoding

11 years agomonitor: Add ATT write response decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:04:10 +0000 (12:04 +0700)]
monitor: Add ATT write response decoding support

11 years agomonitor: Add ATT write request decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:01:20 +0000 (12:01 +0700)]
monitor: Add ATT write request decoding support

11 years agomonitor: Add ATT find info response decoding
Johan Hedberg [Fri, 7 Jun 2013 04:54:53 +0000 (11:54 +0700)]
monitor: Add ATT find info response decoding

11 years agomonitor: Add ATT find info request decoding support
Johan Hedberg [Fri, 7 Jun 2013 04:23:08 +0000 (11:23 +0700)]
monitor: Add ATT find info request decoding support

11 years agoconfigure.ac: Fix typos sytemd -> systemd
Szymon Janc [Sat, 1 Jun 2013 12:49:19 +0000 (14:49 +0200)]
configure.ac: Fix typos sytemd -> systemd

11 years agotools/l2cap-tester: Use PSM 0x1001 instead of 0x0001
Johan Hedberg [Fri, 31 May 2013 19:16:56 +0000 (22:16 +0300)]
tools/l2cap-tester: Use PSM 0x1001 instead of 0x0001

Using the SDP PSM isn't a good idea since bluetoothd could be running
and interfere with the test results.

11 years agoheartrate: Fix D-Bus registration error case
Mikel Astiz [Wed, 29 May 2013 12:38:24 +0000 (14:38 +0200)]
heartrate: Fix D-Bus registration error case

If g_dbus_register_interface() fails, the struct heartrate_adapter
memory will be freed and therefore the heartrate_adapters list cannot
contain such an invalid pointer.

11 years agocyclingspeed: Fix D-Bus registration error case
Mikel Astiz [Wed, 29 May 2013 12:38:23 +0000 (14:38 +0200)]
cyclingspeed: Fix D-Bus registration error case

If g_dbus_register_interface() fails, the struct csc_adapter memory will
be freed and therefore the csc_adapters list cannot contain such an
invalid pointer.

11 years agoobexd: Fix coding style
Luiz Augusto von Dentz [Wed, 29 May 2013 11:10:27 +0000 (14:10 +0300)]
obexd: Fix coding style

Respect 80 column limit

11 years agoobexd: Simplify manager_register_session
Luiz Augusto von Dentz [Wed, 29 May 2013 11:08:19 +0000 (14:08 +0300)]
obexd: Simplify manager_register_session

There is no need for a goto as nothing else is done

11 years agoobexd: Fix not unregistering interface when a session is detroyed
Luiz Augusto von Dentz [Wed, 29 May 2013 10:54:47 +0000 (13:54 +0300)]
obexd: Fix not unregistering interface when a session is detroyed

The path used for unregistering is wrong so the Session interface is
still reachable after the object is destroyed which can cause crashes
such as the following:

invalid read of size 8
    at 0x4297C4: get_destination (manager.c:286)
    by 0x41130B: properties_get (object.c:800)
    by 0x410710: process_message.isra.4 (object.c:258)
    by 0x3F3461D9C4: ??? (in /usr/lib64/libdbus-1.so.3.7.2)
    by 0x3F3460FC1F: dbus_connection_dispatch (in /usr/lib64/libdbus-1.so.3.7.2)
    by 0x40E207: message_dispatch (mainloop.c:76)
    by 0x3F31A485DA: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
    by 0x3F31A47A54: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.3400.2)
    by 0x3F31A47D87: ??? (in /usr/lib64/libglib-2.0.so.0.3400.2)
    by 0x3F31A48181: g_main_loop_run (in /usr/lib64/libglib-2.0.so.0.3400.2)
    by 0x40DDB2: main (main.c:319)

11 years agomanager: remove unused call to obex_getpeername()
Gustavo Padovan [Tue, 28 May 2013 17:45:23 +0000 (14:45 -0300)]
manager: remove unused call to obex_getpeername()

11 years agosession: add Source and Destination properties
Gustavo Padovan [Tue, 28 May 2013 17:45:22 +0000 (14:45 -0300)]
session: add Source and Destination properties

This is useful when we want to know where a incoming OPP transfer, for
example, is from.

11 years agoobex: get src and dst address and store it
Gustavo Padovan [Tue, 28 May 2013 17:45:21 +0000 (14:45 -0300)]
obex: get src and dst address and store it

This commit creates src and dst members in obex_session to later use them
to export via Session D-Bus API.

11 years agoobex: add obex_getsockname()
Gustavo Padovan [Tue, 28 May 2013 17:45:20 +0000 (14:45 -0300)]
obex: add obex_getsockname()

Allow obex users to get the source device address.

11 years agobluetooth: add getsockname() entry in the bluetooth driver
Gustavo Padovan [Tue, 28 May 2013 17:45:19 +0000 (14:45 -0300)]
bluetooth: add getsockname() entry in the bluetooth driver

11 years agotransport: add getsockname to transport driver
Gustavo Padovan [Tue, 28 May 2013 17:45:18 +0000 (14:45 -0300)]
transport: add getsockname to transport driver

Enable other pieces of obex to get the source Bluetooth address.

11 years agotools/l2cap-tester: Add invalid PSM client test case
Johan Hedberg [Wed, 29 May 2013 11:33:59 +0000 (14:33 +0300)]
tools/l2cap-tester: Add invalid PSM client test case

11 years agotools/l2cap-tester: Refactor to enable per-test test data
Johan Hedberg [Wed, 29 May 2013 10:57:45 +0000 (13:57 +0300)]
tools/l2cap-tester: Refactor to enable per-test test data

11 years agoobexd: Queue delete command
Christian Fetzer [Tue, 28 May 2013 12:37:13 +0000 (14:37 +0200)]
obexd: Queue delete command

11 years agoobexd: Queue move command
Christian Fetzer [Tue, 28 May 2013 12:37:12 +0000 (14:37 +0200)]
obexd: Queue move command

11 years agoobexd: Queue copy command
Christian Fetzer [Tue, 28 May 2013 12:37:11 +0000 (14:37 +0200)]
obexd: Queue copy command

11 years agoobexd: Queue mkdir command
Christian Fetzer [Tue, 28 May 2013 12:37:10 +0000 (14:37 +0200)]
obexd: Queue mkdir command

11 years agoobexd: Add file_data struct to session
Christian Fetzer [Tue, 28 May 2013 12:37:09 +0000 (14:37 +0200)]
obexd: Add file_data struct to session

This adds a common file_data struct and related free and complete callbacks
to the session. This will be used for queuing the file related commands
mkdir, copy, move and delete.

11 years agoobexd: Queue setpath command
Christian Fetzer [Tue, 28 May 2013 12:37:08 +0000 (14:37 +0200)]
obexd: Queue setpath command

11 years agoobexd: Use process callback to queue transfers
Christian Fetzer [Wed, 29 May 2013 09:45:18 +0000 (12:45 +0300)]
obexd: Use process callback to queue transfers

This generalizes the existing queuing of transfers by using the
process callback of pending_request.

11 years agoobexd: Add session_queue
Christian Fetzer [Tue, 28 May 2013 12:37:06 +0000 (14:37 +0200)]
obexd: Add session_queue

Add helper function session_queue that appends a pending_request to the
session's command queue.

11 years agoobexd: Add process callback to session's pending_request
Christian Fetzer [Tue, 28 May 2013 12:37:05 +0000 (14:37 +0200)]
obexd: Add process callback to session's pending_request

This adds a process callback and a data destroy callback to the session's
pending_request structure.

This is needed as preparation of queuing all OBEX session commands.

11 years agotools/l2cap-tester: Add invalid L2CAP PDU test case
Johan Hedberg [Wed, 29 May 2013 09:16:55 +0000 (12:16 +0300)]
tools/l2cap-tester: Add invalid L2CAP PDU test case

11 years agoemulator: Add handler for L2CAP command reject PDU
Johan Hedberg [Wed, 29 May 2013 09:13:20 +0000 (12:13 +0300)]
emulator: Add handler for L2CAP command reject PDU

11 years agoemulator: Add callback mechanism for L2CAP requests
Johan Hedberg [Wed, 29 May 2013 08:29:37 +0000 (11:29 +0300)]
emulator: Add callback mechanism for L2CAP requests

11 years agoemulator: Make bthost L2CAP sender strictly only for requests
Johan Hedberg [Wed, 29 May 2013 08:05:32 +0000 (11:05 +0300)]
emulator: Make bthost L2CAP sender strictly only for requests

11 years agoemulator: Return used L2CAP ident value from bthost_l2cap_cmd()
Johan Hedberg [Wed, 29 May 2013 07:56:41 +0000 (10:56 +0300)]
emulator: Return used L2CAP ident value from bthost_l2cap_cmd()

11 years agoshared: Remove unused hciemu functions
Johan Hedberg [Wed, 29 May 2013 07:29:31 +0000 (10:29 +0300)]
shared: Remove unused hciemu functions

11 years agotools/l2cap-tester: Take advantage of the new hciemu_client_get_host API
Johan Hedberg [Wed, 29 May 2013 07:20:30 +0000 (10:20 +0300)]
tools/l2cap-tester: Take advantage of the new hciemu_client_get_host API

11 years agoshared: Add API to get access to the hciemu bthost instance
Johan Hedberg [Wed, 29 May 2013 07:13:56 +0000 (10:13 +0300)]
shared: Add API to get access to the hciemu bthost instance

11 years agocore: Use a dedicated D-Bus error for rfkill power on failure
Johan Hedberg [Wed, 29 May 2013 06:48:26 +0000 (09:48 +0300)]
core: Use a dedicated D-Bus error for rfkill power on failure

11 years agomgmt: Add support for new MGMT_STATUS_RFKILLED
Johan Hedberg [Wed, 29 May 2013 06:43:00 +0000 (09:43 +0300)]
mgmt: Add support for new MGMT_STATUS_RFKILLED

11 years agogdbus: Remove proxies when client disconnects
Henrique Dante de Almeida [Mon, 27 May 2013 17:15:34 +0000 (14:15 -0300)]
gdbus: Remove proxies when client disconnects

Remove proxies and generate proxy_removed callbacks even when there are
no corresponding InterfaceRemoved signals.

This patch fixes having zombie gdbus proxy object when a server
disconnects without sending InterfaceRemoved signals. These objects
may interact with new server instances, for example, making
InterfaceAdded signals of new objects with the same name be filtered
out as duplicated, or staying allocated, but unused, if the new server
doesn't reuse the object paths. Note that as a side-effect, the
lifetime of a gdbus proxy becomes stricter: it lives at most for the
duration of a single connection to a single instance of a server
process.

11 years agoopp: Register Session interface for OPP transfers
Gustavo Padovan [Mon, 27 May 2013 23:07:04 +0000 (20:07 -0300)]
opp: Register Session interface for OPP transfers

The Session interface wasn't registered when a new transfer arrives.

11 years agosession: only add Target if it exists
Gustavo Padovan [Mon, 27 May 2013 23:07:01 +0000 (20:07 -0300)]
session: only add Target if it exists

11 years agotools/l2cap-tester: Add basic server socket test case
Johan Hedberg [Mon, 27 May 2013 15:20:06 +0000 (18:20 +0300)]
tools/l2cap-tester: Add basic server socket test case

11 years agoemulator: Add L2CAP connection tracking to bthost
Johan Hedberg [Tue, 28 May 2013 08:09:27 +0000 (11:09 +0300)]
emulator: Add L2CAP connection tracking to bthost

11 years agoemulator: Add ACL connection tracking to bthost
Johan Hedberg [Tue, 28 May 2013 06:38:18 +0000 (09:38 +0300)]
emulator: Add ACL connection tracking to bthost

11 years agoemulator: Fix L2CAP Config req/rsp handling in bthost
Johan Hedberg [Mon, 27 May 2013 17:59:06 +0000 (20:59 +0300)]
emulator: Fix L2CAP Config req/rsp handling in bthost

11 years agoshared: Add necessary APIs for L2CAP connection initiation to hciemu
Johan Hedberg [Mon, 27 May 2013 17:34:06 +0000 (20:34 +0300)]
shared: Add necessary APIs for L2CAP connection initiation to hciemu

11 years agoemulator: Fix btdev connectability test (0x02 is page scan)
Johan Hedberg [Mon, 27 May 2013 17:29:12 +0000 (20:29 +0300)]
emulator: Fix btdev connectability test (0x02 is page scan)

11 years agoshared: Add new connection callback API to hciemu
Johan Hedberg [Mon, 27 May 2013 15:30:16 +0000 (18:30 +0300)]
shared: Add new connection callback API to hciemu

11 years agoemulator: Add API to initiate ACL connections
Johan Hedberg [Mon, 27 May 2013 13:13:14 +0000 (16:13 +0300)]
emulator: Add API to initiate ACL connections

11 years agoemulator: Make bthost L2CAP command function public
Johan Hedberg [Mon, 27 May 2013 13:01:50 +0000 (16:01 +0300)]
emulator: Make bthost L2CAP command function public

11 years agoemulator: Add ACL connection callback to bthost
Johan Hedberg [Mon, 27 May 2013 12:56:54 +0000 (15:56 +0300)]
emulator: Add ACL connection callback to bthost

11 years agomonitor: L2CAP Conf Response CID is a Source CID
Johan Hedberg [Mon, 27 May 2013 18:38:20 +0000 (21:38 +0300)]
monitor: L2CAP Conf Response CID is a Source CID

11 years agoemulator: Add L2CAP Disconnect Request handler to bthost
Johan Hedberg [Mon, 27 May 2013 12:26:56 +0000 (15:26 +0300)]
emulator: Add L2CAP Disconnect Request handler to bthost

11 years agoemulator: Simpify bthost L2CAP signaling channel code
Johan Hedberg [Mon, 27 May 2013 09:26:55 +0000 (12:26 +0300)]
emulator: Simpify bthost L2CAP signaling channel code

11 years agotools/l2cap-tester: Add basic L2CAP connect failure test case
Johan Hedberg [Mon, 27 May 2013 09:03:24 +0000 (12:03 +0300)]
tools/l2cap-tester: Add basic L2CAP connect failure test case

11 years agotools/l2cap-tester: Refactor L2CAP socket functions
Johan Hedberg [Mon, 27 May 2013 08:56:31 +0000 (11:56 +0300)]
tools/l2cap-tester: Refactor L2CAP socket functions

11 years agotools/l2cap-tester: Add basic connect test case
Johan Hedberg [Sun, 26 May 2013 17:21:19 +0000 (20:21 +0300)]
tools/l2cap-tester: Add basic connect test case

11 years agoemulator: Add basic L2CAP Config Response handling to bthost
Johan Hedberg [Mon, 27 May 2013 08:47:40 +0000 (11:47 +0300)]
emulator: Add basic L2CAP Config Response handling to bthost

11 years agoemulator: Add basic L2CAP Config Request handling to bthost
Johan Hedberg [Mon, 27 May 2013 08:42:02 +0000 (11:42 +0300)]
emulator: Add basic L2CAP Config Request handling to bthost

11 years agoshared: Add simple hciemu client server PSM API
Johan Hedberg [Mon, 27 May 2013 08:36:04 +0000 (11:36 +0300)]
shared: Add simple hciemu client server PSM API

11 years agoemulator: Add basic server PSM support to bthost
Johan Hedberg [Mon, 27 May 2013 08:35:12 +0000 (11:35 +0300)]
emulator: Add basic server PSM support to bthost

11 years agomonitor: Fix using bt.h defines for ACL header parsing
Johan Hedberg [Mon, 27 May 2013 04:17:14 +0000 (07:17 +0300)]
monitor: Fix using bt.h defines for ACL header parsing

11 years agoemulator: Add stub for L2CAP connect requests to bthost
Johan Hedberg [Sun, 26 May 2013 15:11:46 +0000 (16:11 +0100)]
emulator: Add stub for L2CAP connect requests to bthost

11 years agoemulator: Log unsupported L2CAP packet types
Johan Hedberg [Sun, 26 May 2013 15:06:09 +0000 (16:06 +0100)]
emulator: Log unsupported L2CAP packet types

11 years agoemulator: Add stub for completed packets event to bthost
Johan Hedberg [Sun, 26 May 2013 15:04:36 +0000 (16:04 +0100)]
emulator: Add stub for completed packets event to bthost

11 years agoemulator: Add basic L2CAP signaling handling to bthost
Johan Hedberg [Sun, 26 May 2013 15:01:29 +0000 (16:01 +0100)]
emulator: Add basic L2CAP signaling handling to bthost

11 years agomonitor: Add struct for ACL header
Johan Hedberg [Sun, 26 May 2013 14:38:40 +0000 (15:38 +0100)]
monitor: Add struct for ACL header

11 years agoemulator: Add stub for connect complete handling to bthost
Johan Hedberg [Sun, 26 May 2013 03:35:23 +0000 (04:35 +0100)]
emulator: Add stub for connect complete handling to bthost

11 years agoemulator: Add stub for ACL data handling to bthost
Johan Hedberg [Sun, 26 May 2013 03:32:10 +0000 (04:32 +0100)]
emulator: Add stub for ACL data handling to bthost

11 years agoshared: Add bdaddr getter functions to hciemu
Johan Hedberg [Sun, 26 May 2013 03:25:44 +0000 (04:25 +0100)]
shared: Add bdaddr getter functions to hciemu

11 years agoemulator: Add connect request handling to bthost
Johan Hedberg [Sun, 26 May 2013 03:24:30 +0000 (04:24 +0100)]
emulator: Add connect request handling to bthost

11 years agotools/l2cap-tester: Add connectable enabling for hciemu client
Johan Hedberg [Sun, 26 May 2013 01:26:18 +0000 (18:26 -0700)]
tools/l2cap-tester: Add connectable enabling for hciemu client

11 years agoemulator: Add scan_enable cmd_complete handler for bthost
Johan Hedberg [Sun, 26 May 2013 01:21:52 +0000 (18:21 -0700)]
emulator: Add scan_enable cmd_complete handler for bthost

11 years agoemulator: implement write_scan_enable support
Johan Hedberg [Wed, 22 May 2013 19:28:51 +0000 (12:28 -0700)]
emulator: implement write_scan_enable support

11 years agoemulator: Add bdaddr reading support to bthost
Johan Hedberg [Sun, 19 May 2013 18:51:03 +0000 (21:51 +0300)]
emulator: Add bdaddr reading support to bthost

11 years agoemulator: Add HCI command queuing support
Johan Hedberg [Sun, 19 May 2013 18:26:28 +0000 (21:26 +0300)]
emulator: Add HCI command queuing support

11 years agoemulator: Add basic cmd_complete/status handling for bthost
Johan Hedberg [Sun, 19 May 2013 17:35:15 +0000 (20:35 +0300)]
emulator: Add basic cmd_complete/status handling for bthost

11 years agotools: Add L2CAP end-to-end test tool
Johan Hedberg [Sun, 19 May 2013 17:19:05 +0000 (20:19 +0300)]
tools: Add L2CAP end-to-end test tool

11 years agocontrol: Remove control_update
Luiz Augusto von Dentz [Thu, 23 May 2013 18:56:23 +0000 (11:56 -0700)]
control: Remove control_update

It is no longer used

11 years agoaudio: Make use of .device_probe in all AVRCP profile drivers
Luiz Augusto von Dentz [Thu, 23 May 2013 18:35:33 +0000 (11:35 -0700)]
audio: Make use of .device_probe in all AVRCP profile drivers

We should not rely on the order of the profile driver registration nor
recheck if the UUID match every time.

11 years agoaudio: Remove auto_connect flag from audio-avrcp-target
Luiz Augusto von Dentz [Thu, 23 May 2013 18:06:09 +0000 (11:06 -0700)]
audio: Remove auto_connect flag from audio-avrcp-target

By the time the profile is registered it is not really possible to
tell which role of AVRCP should be connected, currently this cause
a problem with headsets that normally are controllers/sink but since
it normally also has target record for features related to things like
volume control the target profile is also probed and as it currently
has the auto_connect set it would lead to the wrong profile to start
connecting.

11 years agolib: Fix sdp_seq_alloc_with_length accessing invalid index/memory
Luiz Augusto von Dentz [Thu, 23 May 2013 19:01:12 +0000 (12:01 -0700)]
lib: Fix sdp_seq_alloc_with_length accessing invalid index/memory

The sequence itself is not an index of dtds, values, lengths, thats why
SDP_SEQ8 is used directly as dtd, so accessing length[i] is always off
by one.

Furthermore the length is not really used by sdp_data_alloc_with_length
when the dtd is SDP_SEQ8 which is probably why it doesn't crash.

11 years agoobexd: Fix SetPath response
Christian Fetzer [Thu, 23 May 2013 16:33:30 +0000 (18:33 +0200)]
obexd: Fix SetPath response

This fixes the issue, that failed attempts to the OBEX SetPath command
are not propagated through the D-Bus API.

Trace:

  method call sender=:1.942 -> dest=:1.934 serial=8
  path=/org/bluez/obex/client/session3;
  interface=org.bluez.obex.MessageAccess1; member=SetFolder
     string "test"
  method return sender=:1.934 -> dest=:1.942 reply_serial=8

  method call sender=:1.946 -> dest=:1.945 serial=8
  path=/org/bluez/obex/client/session0;
  interface=org.bluez.obex.MessageAccess1; member=SetFolder
     string "test"
  error sender=:1.945 -> dest=:1.946
  error_name=org.bluez.obex.Error.Failed reply_serial=8
     string "Not Found"

11 years agoprofile: Fix incoming connections without SDP record
Christian Fetzer [Tue, 21 May 2013 15:26:24 +0000 (17:26 +0200)]
profile: Fix incoming connections without SDP record

After commit 7bd3626b6715ac6a117d56b95b455960f7cf34de, incoming
connections require the service being available from SDP. This is not
always guaranteed because some services might not be listed in SDP (like
MNS).

11 years agolib: Update company identifiers
Johan Hedberg [Sun, 19 May 2013 04:08:31 +0000 (07:08 +0300)]
lib: Update company identifiers

11 years agotools: Add script for updating bt_compidtostr() implementation
Anderson Lizardo [Fri, 17 May 2013 14:21:59 +0000 (10:21 -0400)]
tools: Add script for updating bt_compidtostr() implementation

This script uses curl and html2text to fetch company IDs from
bluetooth.org's "Assigned Numbers" section.

11 years agobtiotest: Fix wrong variable in log message
Johan Hedberg [Fri, 17 May 2013 08:28:11 +0000 (11:28 +0300)]
btiotest: Fix wrong variable in log message

11 years agobtiotest: Add support for listening on a specific addr type
Johan Hedberg [Fri, 17 May 2013 08:17:54 +0000 (11:17 +0300)]
btiotest: Add support for listening on a specific addr type

11 years agobtiotest: Add support for listening on a fixed CID
Johan Hedberg [Fri, 17 May 2013 08:16:09 +0000 (11:16 +0300)]
btiotest: Add support for listening on a fixed CID

11 years agocore: Always specify local LE address type with btio
Johan Hedberg [Fri, 17 May 2013 08:08:56 +0000 (11:08 +0300)]
core: Always specify local LE address type with btio

11 years agobtio: Add BT_IO_OPT_SOURCE_TYPE option for source bdaddr type
Johan Hedberg [Fri, 17 May 2013 08:03:11 +0000 (11:03 +0300)]
btio: Add BT_IO_OPT_SOURCE_TYPE option for source bdaddr type

11 years agotest/ftp-client: Fix syntax error for python 3.0
Emilio Pozuelo Monfort [Thu, 16 May 2013 17:27:23 +0000 (19:27 +0200)]
test/ftp-client: Fix syntax error for python 3.0

11 years agoA2DP: Fix regression introduce by 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b
Luiz Augusto von Dentz [Thu, 16 May 2013 11:17:31 +0000 (14:17 +0300)]
A2DP: Fix regression introduce by 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b

Commit 99c6f5221800a48e8ce0b1e070e97d1c26a0f90b checks if there is a
pending resume and in case OPEN fails it abort it as well, but it can
cause a crash if resume was not requested and the setup is freed by
finalize_config:

Invalid read of size 4
   at 0x4214AD: open_cfm (a2dp.c:730)
   by 0x424D07: handle_transport_connect (avdtp.c:878)
   by 0x4288F2: avdtp_connect_cb (avdtp.c:2419)
   by 0x4458B8: connect_cb (btio.c:230)
   by 0x4E79D12: g_main_context_dispatch (gmain.c:2539)
   by 0x4E7A05F: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4E7A459: g_main_loop_run (gmain.c:3340)
   by 0x44B0AC: main (main.c:583)
 Address 0x62c8564 is 68 bytes inside a block of size 88 free'd
   at 0x4C2A82E: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x420094: setup_free (a2dp.c:156)
   by 0x420101: setup_unref (a2dp.c:168)
   by 0x4201CF: setup_cb_free (a2dp.c:191)
   by 0x4203DC: finalize_config (a2dp.c:234)
   by 0x4214A8: open_cfm (a2dp.c:728)
   by 0x424D07: handle_transport_connect (avdtp.c:878)
   by 0x4288F2: avdtp_connect_cb (avdtp.c:2419)
   by 0x4458B8: connect_cb (btio.c:230)
   by 0x4E79D12: g_main_context_dispatch (gmain.c:2539)
   by 0x4E7A05F: g_main_context_iterate.isra.23 (gmain.c:3146)
   by 0x4E7A459: g_main_loop_run (gmain.c:3340)

11 years agotools/mpris-player: Emit changes to HasTrackList
Luiz Augusto von Dentz [Wed, 15 May 2013 14:21:52 +0000 (17:21 +0300)]
tools/mpris-player: Emit changes to HasTrackList

11 years agotools/mpris-player: Use playlist proxy instead of object path
Luiz Augusto von Dentz [Wed, 15 May 2013 12:44:53 +0000 (15:44 +0300)]
tools/mpris-player: Use playlist proxy instead of object path

This is more convenient as it gives access to all properties including
the Name of the playlist.