OSDN Git Service
Luiz Augusto von Dentz [Mon, 3 Jun 2013 04:40:19 +0000 (11:40 +0700)]
AVCTP: Fix coding style
Fix unnecessary extra tabs
Luiz Augusto von Dentz [Mon, 3 Jun 2013 03:55:53 +0000 (10:55 +0700)]
AVRCP: Fix crash when registering unsupported notification
Reject command if notification is not supported otherwise this can
cause crashes.
Luiz Augusto von Dentz [Mon, 10 Jun 2013 08:02:03 +0000 (11:02 +0300)]
tools/bluetooth-player: Add show-item command
Add support for show-item command which can be used to print item
information.
Luiz Augusto von Dentz [Fri, 7 Jun 2013 08:44:24 +0000 (15:44 +0700)]
tools/bluetooth-player: Add search command
Add support for search command which can be used to search a for items
containing a given string.
Luiz Augusto von Dentz [Tue, 4 Jun 2013 10:14:17 +0000 (17:14 +0700)]
tools/bluetooth-player: Add scan command
Add support for scan command which can be used to set scan mode.
Luiz Augusto von Dentz [Tue, 4 Jun 2013 10:03:59 +0000 (17:03 +0700)]
tools/bluetooth-player: Add shuffle command
Add support for shuffle command which can be used to set shuffle mode.
Luiz Augusto von Dentz [Tue, 4 Jun 2013 09:45:42 +0000 (16:45 +0700)]
tools/bluetooth-player: Add repeat command
Add support for equalizer command which can be used to set repeat mode.
Luiz Augusto von Dentz [Tue, 4 Jun 2013 06:19:25 +0000 (13:19 +0700)]
tools/bluetooth-player: Add equalizer command
Add support for equalizer command which can be used to enable/disable
equalizer.
Luiz Augusto von Dentz [Tue, 4 Jun 2013 02:49:01 +0000 (09:49 +0700)]
tools/bluetooth-player: Add queue command
Add support for queue command which can be used to add an item to the
current playlist.
Luiz Augusto von Dentz [Mon, 3 Jun 2013 15:57:36 +0000 (22:57 +0700)]
tools/bluetooth-player: Add item argument to play command
Add item argument to play command so it can be used to e.g. jump to
different item in the playlist.
Luiz Augusto von Dentz [Sun, 2 Jun 2013 02:26:16 +0000 (09:26 +0700)]
tools/bluetooth-player: Add list-items command
Add support for list-items command which can be used list items of
current folder.
Luiz Augusto von Dentz [Sat, 1 Jun 2013 16:42:47 +0000 (23:42 +0700)]
tools/bluetooth-player: Add change-folder command
Add support for change-folder command which can be used to change
current folder.
Luiz Augusto von Dentz [Sat, 1 Jun 2013 16:21:02 +0000 (23:21 +0700)]
tools/bluetooth-player: Print playlist name in command show
This makes command show to print playlist name if available
Luiz Augusto von Dentz [Sat, 1 Jun 2013 15:57:47 +0000 (22:57 +0700)]
tools/bluetooth-player: Add proxy handling for org.bluez.MediaItem1
This adds proxy handling for org.bluez.MediaItem1 so changes to the
proxy are printed in the output.
Luiz Augusto von Dentz [Sat, 1 Jun 2013 13:45:35 +0000 (20:45 +0700)]
tools/bluetooth-player: Add folder properties to command show output
This add folder properties to command show output if MediaFolder1 is
supported.
Luiz Augusto von Dentz [Sat, 1 Jun 2013 13:39:45 +0000 (20:39 +0700)]
tools/bluetooth-player: Add proxy handling for org.bluez.MediaFolder1
This adds proxy handling for org.bluez.MediaFolder1 so changes to the
proxy are printed in the output.
Luiz Augusto von Dentz [Fri, 31 May 2013 08:59:00 +0000 (11:59 +0300)]
tools/bluetooth-player: Add select command
Add support for select command which can be used to set the default
player
Luiz Augusto von Dentz [Fri, 31 May 2013 08:09:51 +0000 (11:09 +0300)]
tools/bluetooth-player: Add show command
Add support for show command which can be used to show player
information
Luiz Augusto von Dentz [Fri, 31 May 2013 07:49:04 +0000 (10:49 +0300)]
tools/bluetooth-player: Add list command
Add support for list command which can be used to list available players
Luiz Augusto von Dentz [Thu, 30 May 2013 19:51:57 +0000 (22:51 +0300)]
tools/bluetooth-player: Add rewind command
Add support for rewind command which can be used to rewind the playback
Luiz Augusto von Dentz [Thu, 30 May 2013 19:46:03 +0000 (22:46 +0300)]
tools/bluetooth-player: Add fast-forward command
Add support for fast-forward command which can be used to fast forward
the playback
Luiz Augusto von Dentz [Thu, 30 May 2013 17:29:36 +0000 (20:29 +0300)]
tools/bluetooth-player: Add previous command
Add support for next command which can be used to jump to the previous
item
Luiz Augusto von Dentz [Thu, 30 May 2013 17:24:34 +0000 (20:24 +0300)]
tools/bluetooth-player: Add next command
Add support for next command which can be used to jump to the next item
Luiz Augusto von Dentz [Thu, 30 May 2013 17:18:59 +0000 (20:18 +0300)]
tools/bluetooth-player: Add stop command
Add support for stop command which can be used to stop the playback
Luiz Augusto von Dentz [Thu, 30 May 2013 17:15:20 +0000 (20:15 +0300)]
tools/bluetooth-player: Add pause command
Add support for pause command which can be used to resume the playback
Luiz Augusto von Dentz [Thu, 30 May 2013 17:09:01 +0000 (20:09 +0300)]
tools/bluetooth-player: Add play command
Add support for play command which can be used to resume the playback
Luiz Augusto von Dentz [Thu, 30 May 2013 14:15:43 +0000 (17:15 +0300)]
tools/bluetooth-player: Add support for container types to print_iter
This adds support for container types to print_iter so it can now print
'Track' property properly.
Luiz Augusto von Dentz [Thu, 30 May 2013 14:11:24 +0000 (17:11 +0300)]
tools/bluetooth-player: Add proxy handling for org.bluez.MediaPlayer1
This adds proxy handling for org.bluez.MediaPlayer1 so changes to the
proxy are printed in the output.
Luiz Augusto von Dentz [Thu, 30 May 2013 12:31:21 +0000 (15:31 +0300)]
tools/bluetooth-player: Add initial code
This add initial code for things like input handling as well as some
basic commands.
Luiz Augusto von Dentz [Thu, 30 May 2013 12:21:42 +0000 (15:21 +0300)]
build: Add bluetooth-player command line client
bluetooth-player is intended to control players connected over bluetooth.
Luiz Augusto von Dentz [Wed, 5 Jun 2013 04:19:01 +0000 (11:19 +0700)]
tools/mpris-player: Fix crash on 32-bit machines
Invalid read of size 4
at 0x424997E4: _dbus_header_get_byte_order (dbus-marshal-header.c:178)
by 0x4249EAF7: _dbus_message_iter_check (dbus-message.c:731)
by 0x4249FCAB: dbus_message_iter_next (dbus-message.c:2040)
by 0x8053BE0: parse_properties.isra.8 (mpris-player.c:447)
by 0x8054055: add_player (mpris-player.c:592)
by 0x8054A49: proxy_added (mpris-player.c:801)
by 0x804F6A5: parse_interfaces.part.3 (client.c:878)
by 0x8050551: get_managed_objects_reply (client.c:888)
by 0x424A6621: _dbus_pending_call_complete (dbus-pending-call.c:223)
by 0x42491617: complete_pending_call_and_unlock (dbus-connection.c:2314)
by 0x42494D3E: dbus_connection_dispatch (dbus-connection.c:4580)
by 0x804AF57: message_dispatch (mainloop.c:76)
Address 0x3ff00004 is not stack'd, malloc'd or (recently) free'd
Johan Hedberg [Wed, 5 Jun 2013 10:42:32 +0000 (13:42 +0300)]
core: Fix find included handling with sudden disconnections
Johan Hedberg [Thu, 6 Jun 2013 01:52:54 +0000 (04:52 +0300)]
core: Add logging of default agent changes
Johan Hedberg [Wed, 5 Jun 2013 04:48:05 +0000 (07:48 +0300)]
core: Use bt_uuid_strcmp when possible
Johan Hedberg [Wed, 5 Jun 2013 04:43:10 +0000 (07:43 +0300)]
core: Fix another memory leak when removing profiles
If one place inserts to req->profiles_removed with g_strdup then all
places must do it, and if all places do it then g_free must be used when
removing from it.
Johan Hedberg [Wed, 5 Jun 2013 04:31:22 +0000 (07:31 +0300)]
core: Fix memory leak in device_remove_profiles
Calling just g_slist_free will not free the actual elements (which are
each allocated with g_strdup).
Johan Hedberg [Tue, 4 Jun 2013 06:37:34 +0000 (09:37 +0300)]
alert: Fix invalid read past end of buffer
Johan Hedberg [Fri, 7 Jun 2013 11:20:03 +0000 (14:20 +0300)]
core: Minor whitespace fix
Johan Hedberg [Fri, 7 Jun 2013 11:18:44 +0000 (14:18 +0300)]
core: Fix canceling all pending GAttrib operations
Johan Hedberg [Fri, 7 Jun 2013 11:19:25 +0000 (14:19 +0300)]
attrib: Use GAttrib destroy callback for included search
Johan Hedberg [Fri, 7 Jun 2013 10:22:26 +0000 (13:22 +0300)]
monitor: Add decoders for common ATT attribute values
Johan Hedberg [Fri, 7 Jun 2013 09:54:46 +0000 (12:54 +0300)]
monitor: Add dedicated function for decoding attribute values
Johan Hedberg [Fri, 7 Jun 2013 05:57:57 +0000 (12:57 +0700)]
monitor: Fix ATT read by type request parameter name
Johan Hedberg [Fri, 7 Jun 2013 05:56:33 +0000 (12:56 +0700)]
monitor: Add find by type value response decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:50:25 +0000 (12:50 +0700)]
monitor: Add ATT find by type value request decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:38:35 +0000 (12:38 +0700)]
monitor: Add ATT write command decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:34:19 +0000 (12:34 +0700)]
monitor: Add ATT read blob response decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:30:20 +0000 (12:30 +0700)]
monitor: Add ATT read blob request decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:24:20 +0000 (12:24 +0700)]
monitor: Add HCI LTK req reply command complete decoring support
Johan Hedberg [Fri, 7 Jun 2013 05:18:45 +0000 (12:18 +0700)]
monitor: Add HCI LTK request negative reply command decoding
Johan Hedberg [Fri, 7 Jun 2013 05:15:23 +0000 (12:15 +0700)]
monitor: Add HCI LTK request reply command decoding
Johan Hedberg [Fri, 7 Jun 2013 05:04:10 +0000 (12:04 +0700)]
monitor: Add ATT write response decoding support
Johan Hedberg [Fri, 7 Jun 2013 05:01:20 +0000 (12:01 +0700)]
monitor: Add ATT write request decoding support
Johan Hedberg [Fri, 7 Jun 2013 04:54:53 +0000 (11:54 +0700)]
monitor: Add ATT find info response decoding
Johan Hedberg [Fri, 7 Jun 2013 04:23:08 +0000 (11:23 +0700)]
monitor: Add ATT find info request decoding support
Szymon Janc [Sat, 1 Jun 2013 12:49:19 +0000 (14:49 +0200)]
configure.ac: Fix typos sytemd -> systemd
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.
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.
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.
Luiz Augusto von Dentz [Wed, 29 May 2013 11:10:27 +0000 (14:10 +0300)]
obexd: Fix coding style
Respect 80 column limit
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
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)
Gustavo Padovan [Tue, 28 May 2013 17:45:23 +0000 (14:45 -0300)]
manager: remove unused call to obex_getpeername()
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.
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.
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.
Gustavo Padovan [Tue, 28 May 2013 17:45:19 +0000 (14:45 -0300)]
bluetooth: add getsockname() entry in the bluetooth 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.
Johan Hedberg [Wed, 29 May 2013 11:33:59 +0000 (14:33 +0300)]
tools/l2cap-tester: Add invalid PSM client test case
Johan Hedberg [Wed, 29 May 2013 10:57:45 +0000 (13:57 +0300)]
tools/l2cap-tester: Refactor to enable per-test test data
Christian Fetzer [Tue, 28 May 2013 12:37:13 +0000 (14:37 +0200)]
obexd: Queue delete command
Christian Fetzer [Tue, 28 May 2013 12:37:12 +0000 (14:37 +0200)]
obexd: Queue move command
Christian Fetzer [Tue, 28 May 2013 12:37:11 +0000 (14:37 +0200)]
obexd: Queue copy command
Christian Fetzer [Tue, 28 May 2013 12:37:10 +0000 (14:37 +0200)]
obexd: Queue mkdir command
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.
Christian Fetzer [Tue, 28 May 2013 12:37:08 +0000 (14:37 +0200)]
obexd: Queue setpath command
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.
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.
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.
Johan Hedberg [Wed, 29 May 2013 09:16:55 +0000 (12:16 +0300)]
tools/l2cap-tester: Add invalid L2CAP PDU test case
Johan Hedberg [Wed, 29 May 2013 09:13:20 +0000 (12:13 +0300)]
emulator: Add handler for L2CAP command reject PDU
Johan Hedberg [Wed, 29 May 2013 08:29:37 +0000 (11:29 +0300)]
emulator: Add callback mechanism for L2CAP requests
Johan Hedberg [Wed, 29 May 2013 08:05:32 +0000 (11:05 +0300)]
emulator: Make bthost L2CAP sender strictly only for requests
Johan Hedberg [Wed, 29 May 2013 07:56:41 +0000 (10:56 +0300)]
emulator: Return used L2CAP ident value from bthost_l2cap_cmd()
Johan Hedberg [Wed, 29 May 2013 07:29:31 +0000 (10:29 +0300)]
shared: Remove unused hciemu functions
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
Johan Hedberg [Wed, 29 May 2013 07:13:56 +0000 (10:13 +0300)]
shared: Add API to get access to the hciemu bthost instance
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
Johan Hedberg [Wed, 29 May 2013 06:43:00 +0000 (09:43 +0300)]
mgmt: Add support for new MGMT_STATUS_RFKILLED
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.
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.
Gustavo Padovan [Mon, 27 May 2013 23:07:01 +0000 (20:07 -0300)]
session: only add Target if it exists
Johan Hedberg [Mon, 27 May 2013 15:20:06 +0000 (18:20 +0300)]
tools/l2cap-tester: Add basic server socket test case
Johan Hedberg [Tue, 28 May 2013 08:09:27 +0000 (11:09 +0300)]
emulator: Add L2CAP connection tracking to bthost
Johan Hedberg [Tue, 28 May 2013 06:38:18 +0000 (09:38 +0300)]
emulator: Add ACL connection tracking to bthost
Johan Hedberg [Mon, 27 May 2013 17:59:06 +0000 (20:59 +0300)]
emulator: Fix L2CAP Config req/rsp handling in bthost
Johan Hedberg [Mon, 27 May 2013 17:34:06 +0000 (20:34 +0300)]
shared: Add necessary APIs for L2CAP connection initiation to hciemu
Johan Hedberg [Mon, 27 May 2013 17:29:12 +0000 (20:29 +0300)]
emulator: Fix btdev connectability test (0x02 is page scan)
Johan Hedberg [Mon, 27 May 2013 15:30:16 +0000 (18:30 +0300)]
shared: Add new connection callback API to hciemu
Johan Hedberg [Mon, 27 May 2013 13:13:14 +0000 (16:13 +0300)]
emulator: Add API to initiate ACL connections