OSDN Git Service
Luiz Augusto von Dentz [Thu, 10 Jan 2013 16:59:53 +0000 (18:59 +0200)]
tools: Fix using DBusBasicValue
DBusBasicValue needs a more recent libdbus so use const void * instead
Luiz Augusto von Dentz [Tue, 8 Jan 2013 12:30:41 +0000 (14:30 +0200)]
tools: Update mpris-player to register using MPRIS interface
In addition fix not supporting new APIs for getting the adapter.
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:54:12 +0000 (10:54 +0200)]
media: Implement new RegisterPlayer API
RegisterPlayer now uses MPRIS spec
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:47:55 +0000 (10:47 +0200)]
test: Update test-player to register using MPRIS interface
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:43:03 +0000 (10:43 +0200)]
media-api: Change RegisterPlayer to use MPRIS spec
RegisterPlayer now expect registered paths to implement
org.mpris.MediaPlayer2.player interface accourding to MPRIS spec:
http://specifications.freedesktop.org/mpris-spec/latest/
Luiz Augusto von Dentz [Sat, 5 Jan 2013 13:25:49 +0000 (15:25 +0200)]
tools: Adapt mpris-player to new API of MediaPlayer1
In addition fix using Manager1 interface which no longer exists
Luiz Augusto von Dentz [Sat, 5 Jan 2013 11:51:13 +0000 (13:51 +0200)]
test: Adapt simple-player to the new API of MediaPlayer1
Luiz Augusto von Dentz [Sat, 5 Jan 2013 11:44:19 +0000 (13:44 +0200)]
media: Adapt RegisterPlayer to changes in MediaPlayer1
This adds support for Track being a property and the removal of
GetTrack and TrackChanged.
Luiz Augusto von Dentz [Fri, 4 Jan 2013 12:10:49 +0000 (14:10 +0200)]
player: Add Device property
Device property indicates which device object the player belongs to.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 15:08:21 +0000 (17:08 +0200)]
AVRCP: Always create a controller player even for version 1.0
Since the buttons controls are now part of the MediaPlayer1 it can be used
even with AVRCP version 1.0.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:51:00 +0000 (16:51 +0200)]
player: Fix documentation to use TrackNumber in track metadata
Using Track key inside a Track property would be pointless, despite the
documentation and code where also inconsistent.
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:39:33 +0000 (16:39 +0200)]
player: Add support for button controls
This adds support for buttons controls in MediaPlayer1
Luiz Augusto von Dentz [Thu, 3 Jan 2013 14:36:37 +0000 (16:36 +0200)]
player: Remove GetTrack and TrackChanged
This turn track metadata into a property called "Track" of MediaPlayer1
Luiz Augusto von Dentz [Wed, 2 Jan 2013 12:09:41 +0000 (14:09 +0200)]
media-api: Add playback control methods to MediaPlayer1
This adds methods such as Play, Pause directly in MediaPlayer1, in
addition to that Track is now turn into a property to take advantage of
ObjectManager and document the interface as experimental.
Anderson Lizardo [Thu, 10 Jan 2013 13:15:09 +0000 (09:15 -0400)]
unit: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:08 +0000 (09:15 -0400)]
attrib: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:07 +0000 (09:15 -0400)]
proximity: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:06 +0000 (09:15 -0400)]
time: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:05 +0000 (09:15 -0400)]
alert: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:04 +0000 (09:15 -0400)]
scanparam: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:03 +0000 (09:15 -0400)]
gatt: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:02 +0000 (09:15 -0400)]
input: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:01 +0000 (09:15 -0400)]
plugins: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 13:15:00 +0000 (09:15 -0400)]
core: Fix remaining references to bluetooth/uuid.h
These headers are not public anymore, so need to use "lib/uuid.h".
Anderson Lizardo [Thu, 10 Jan 2013 12:30:30 +0000 (08:30 -0400)]
unit: Avoid D-Bus calling _exit() during SDP tests
While running tests, the D-Bus library was set to call _exit() when the
client leaves the bus. This caused the second test to be interrupted
without providing a PASS/FAIL result. This was confirmed by running
test-sdp with DBUS_VERBOSE=1.
This commit disables this behavior, which does not exist on BlueZ
because g_dbus_set_disconnect_function() implicitly does this.
Marcel Holtmann [Thu, 10 Jan 2013 07:11:44 +0000 (23:11 -0800)]
tools: Fix up testing of discoverable management command
Marcel Holtmann [Thu, 10 Jan 2013 06:59:34 +0000 (22:59 -0800)]
doc: Clarify the error codes of some management commands
Marcel Holtmann [Thu, 10 Jan 2013 04:32:40 +0000 (20:32 -0800)]
build: Enable Bluetooth library for distribution builds
Marcel Holtmann [Thu, 10 Jan 2013 04:32:12 +0000 (20:32 -0800)]
build: Only install old legacy Bluetooth library headers
Marcel Holtmann [Thu, 10 Jan 2013 04:31:18 +0000 (20:31 -0800)]
monitor: Fix includes from Bluetooth library
Marcel Holtmann [Thu, 10 Jan 2013 04:31:07 +0000 (20:31 -0800)]
tools: Fix includes for mgmt.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:43 +0000 (20:30 -0800)]
obexd: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:30 +0000 (20:30 -0800)]
profiles: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:09 +0000 (20:30 -0800)]
core: Fix includes for mgmt.h and uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 03:45:59 +0000 (19:45 -0800)]
shared: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:17 +0000 (19:45 -0800)]
tools: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:44:00 +0000 (19:44 -0800)]
lib: Remove all management settings helpers since they are unused now
Marcel Holtmann [Thu, 10 Jan 2013 03:43:19 +0000 (19:43 -0800)]
core: Fix setting up discoverable from stored settings on power on
Marcel Holtmann [Thu, 10 Jan 2013 03:13:07 +0000 (19:13 -0800)]
lib: Remove current unused management settings helpers
Marcel Holtmann [Thu, 10 Jan 2013 03:00:45 +0000 (19:00 -0800)]
shared: Use < for management commands and > for events
Marcel Holtmann [Thu, 10 Jan 2013 02:56:31 +0000 (18:56 -0800)]
core: Add support for graceful shutdown of adapters
Anderson Lizardo [Thu, 10 Jan 2013 01:03:28 +0000 (21:03 -0400)]
unit: Print D-Bus error message in verbose mode
If g_dbus_setup_private() fails (e.g. a session bus is not available,
and there is no X11 for dbus-launch to work), the tests are silently
skipped.
With this commit, the D-Bus error message is also printed if verbose
mode is enabled. The test is still skipped as before.
Marcel Holtmann [Thu, 10 Jan 2013 00:55:05 +0000 (16:55 -0800)]
core: Don't bother with return value for setting device class
Marcel Holtmann [Thu, 10 Jan 2013 00:50:04 +0000 (16:50 -0800)]
core: Don't bother with major and minor class for LE only adapters
In case the adapter supports only Low Energy, don't even try to set
major and minor classes for the kernel.
Marcel Holtmann [Thu, 10 Jan 2013 00:01:12 +0000 (16:01 -0800)]
core: Load link keys and long term keys only when controller supports it
Check for BR/EDR support before loading link keys and check for LE support
before loading long term keys.
This has the nice benefit that for BR/EDR only controllers the warning
message from the kernel bug for loading long term keys is gone now. And
only systems with dual mode controllers will expierence it. Makes it a
little bit less confusing.
Marcel Holtmann [Wed, 9 Jan 2013 20:03:45 +0000 (12:03 -0800)]
doc: Add missing empty return parameters for load long term keys
Marcel Holtmann [Wed, 9 Jan 2013 19:35:33 +0000 (11:35 -0800)]
unit: Add advertising data from Cookoo watch for testing
Anderson Lizardo [Wed, 9 Jan 2013 15:19:21 +0000 (11:19 -0400)]
unit: Rename x_pdu() macro on SDP test program
Using the "raw_data" name makes sense, given the macro is just casting
input (raw) data. It will also be reused in other tests with raw input
data.
Also fix this minor checkpatch.pl error:
ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in
parenthesis
+#define raw_data(args...) (const unsigned char[]) { args }
Anderson Lizardo [Wed, 9 Jan 2013 15:19:20 +0000 (11:19 -0400)]
unit: Reuse define_test() macro for /TP/SERVER/BRW/* tests
This is made possible by adding the mtu parameter, given
/TP/SERVER/BRW/* tests use MTU of 672.
Johan Hedberg [Wed, 9 Jan 2013 11:02:39 +0000 (13:02 +0200)]
core: Fix canceling all types of agent requests
When we get a bonding complete we should take care to cancel any kind of
potential pending agent requests. This can (and will) particularly
occur if there are multiple mgmt sockets around and some other mgmt
socket responded to the authentication request.
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:49 +0000 (17:07 +0530)]
sdp-xml: Remove newline before EOF
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:48 +0000 (17:07 +0530)]
audio: Remove unused struct audio_adapter
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:47 +0000 (17:07 +0530)]
unit: Replace g_test_fail() with g_assert_not_reached()
g_test_fail() is introduced in Glib v2.30 and we are using Glib v2.28 as
the minimum requirement for the build. This patch resolves the
compilation error that happen with Glib v2.28.
Error log:
CC unit/test-mgmt.o
unit/test-mgmt.c: In function ‘check_actions’:
unit/test-mgmt.c:100:2: error: implicit declaration of
function ‘g_test_fail’ [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
make[1]: *** [unit/test-mgmt.o] Error 1
make: *** [all] Error 2
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:46 +0000 (17:07 +0530)]
health: Fix possible use after free
A pointer to freed memory is dereferenced if we call function
channel_acquire_continue() with out any earlier reference.
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:45 +0000 (17:07 +0530)]
health: Fix pointer to local variable out-of-scope
The address of the local variable is used outside the scope.
Johan Hedberg [Wed, 9 Jan 2013 08:27:05 +0000 (10:27 +0200)]
unit: Fix hardcoded test for complete name in EIR
Marcel Holtmann [Wed, 9 Jan 2013 06:30:48 +0000 (22:30 -0800)]
tools: Add helper for extracting advertising data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 06:30:01 +0000 (22:30 -0800)]
unit: Add advertising data from Wahoo BlueSC for testing
Marcel Holtmann [Wed, 9 Jan 2013 04:10:02 +0000 (20:10 -0800)]
unit: Add inquiry data from Nike+ FuelBand for testing
Marcel Holtmann [Wed, 9 Jan 2013 04:05:53 +0000 (20:05 -0800)]
unit: Add inquiry data from iPhone 5 and iPad mini for testing
Marcel Holtmann [Wed, 9 Jan 2013 03:46:29 +0000 (19:46 -0800)]
tools: Add helper for extracting EIR data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 03:45:28 +0000 (19:45 -0800)]
unit: Add inquiry data from MacBook Air for testing
Marcel Holtmann [Wed, 9 Jan 2013 02:50:42 +0000 (18:50 -0800)]
tools: Add helper for extracting SDP PDUs out of btsnoop files
Anderson Lizardo [Tue, 8 Jan 2013 23:05:25 +0000 (19:05 -0400)]
lib: Fix SDP_TEXT_STR16/SDP_URL_STR16 parsing
sdp_extract_attr() uses the "size" parameter to return the number of
bytes consumed when parsing SDP Data Elements. This size is used to
advance a buffer pointer to parse next element.
This size was being incorrectly calculated for SDP_{TEXT,URL}_STR16 in
extract_str(), where the string length was added twice. The string
length is already added later in the function for {TEXT,URL}_STR{8,16}
by this statement:
*len += n;
Johan Hedberg [Tue, 8 Jan 2013 18:50:14 +0000 (20:50 +0200)]
doc: Improve documentation of mgmt events
Johan Hedberg [Tue, 8 Jan 2013 13:52:04 +0000 (15:52 +0200)]
doc: Update descriptions and possible error returns of mgmt commands
Mikel Astiz [Tue, 8 Jan 2013 09:41:05 +0000 (10:41 +0100)]
media: Clarify Acquire/TryAcquire error cases
Document the reported errors for Acquire() and TryAcquire(). For the
later, make sure a specific error in guaranteed for the typical scenario
of audio not streaming.
Mikel Astiz [Tue, 8 Jan 2013 09:41:04 +0000 (10:41 +0100)]
media: Add HFP/HSP gains to transport API
Add two independent and HSP/HFP-specific properties to the media
transport representing the input and output audio volumes.
Johan Hedberg [Tue, 8 Jan 2013 11:22:45 +0000 (13:22 +0200)]
core: Remove no longer used src/mgmt.{c,h}
Johan Hedberg [Tue, 8 Jan 2013 11:21:05 +0000 (13:21 +0200)]
core: Move mgmt user passkey notify handling to adapter code
Johan Hedberg [Tue, 8 Jan 2013 11:17:33 +0000 (13:17 +0200)]
core: Move mgmt user passkey request handling to adapter code
Johan Hedberg [Tue, 8 Jan 2013 10:34:38 +0000 (12:34 +0200)]
core: Move mgmt user confirm request handling to adapter code
Johan Hedberg [Tue, 8 Jan 2013 09:41:52 +0000 (11:41 +0200)]
core: Make btd_adapter_get_pin private to adapter.c
Johan Hedberg [Tue, 8 Jan 2013 09:36:57 +0000 (11:36 +0200)]
core: Move mgmt PIN code handling into adapter code
Jaganath Kanakkassery [Tue, 8 Jan 2013 05:25:48 +0000 (10:55 +0530)]
audio: Replace g_hash_table_contains() with g_hash_table_lookup()
g_hash_table_contains() is supported only from GLib 2.32. If BlueZ has to
build against GLib 2.28 this patch replaces g_hash_table_contains() to
g_hash_table_lookup()
Marcel Holtmann [Tue, 8 Jan 2013 05:32:23 +0000 (21:32 -0800)]
core: Cancel pending confirm name commands if present
Otherwise this will race against the device found event in some cases
and lock up the management queue.
Marcel Holtmann [Tue, 8 Jan 2013 04:19:21 +0000 (20:19 -0800)]
shared: Wakeup writer after successfully cancelling any request
Marcel Holtmann [Tue, 8 Jan 2013 04:16:55 +0000 (20:16 -0800)]
core: Add timeout handling for confirm name responses
Since the kernel might not respond, a timeout handling is required.
Marcel Holtmann [Tue, 8 Jan 2013 03:54:41 +0000 (19:54 -0800)]
shared: Fix issue with testing mgmt->pending_list
Marcel Holtmann [Tue, 8 Jan 2013 03:52:46 +0000 (19:52 -0800)]
core: Add timeout handling for loading of LTKs
Since the kernel might not respond, a timeout handling is required.
Marcel Holtmann [Tue, 8 Jan 2013 03:31:14 +0000 (19:31 -0800)]
shared: Add forgotten initialization of mgmt->reply_queue
Jaganath Kanakkassery [Mon, 7 Jan 2013 12:33:53 +0000 (18:03 +0530)]
shared: Fix build break
This patch fixes the below build error
src/shared/mgmt.c: In function ‘mgmt_cancel_index’:
src/shared/mgmt.c:559:30: error: cast to pointer from integer of
different size [-Werror=int-to-pointer-cast]
cc1: all warnings being treated as errors
make[1]: *** [src/shared/bluetoothd-mgmt.o] Error 1
make: *** [all] Error 2
Marcel Holtmann [Tue, 8 Jan 2013 03:16:18 +0000 (19:16 -0800)]
shared: Introduce mgmt_reply function for sending replies
Marcel Holtmann [Tue, 8 Jan 2013 03:01:19 +0000 (19:01 -0800)]
shared: Split creation of mgmt_request into a separate function
Marcel Holtmann [Tue, 8 Jan 2013 02:59:37 +0000 (18:59 -0800)]
shared: Fix issue with free command queue on mgmt_cancel_all
Marcel Holtmann [Mon, 7 Jan 2013 21:19:52 +0000 (13:19 -0800)]
unit: Remove the unused pdu_id value from the SDP tests
Johan Hedberg [Mon, 7 Jan 2013 15:33:22 +0000 (17:33 +0200)]
core: Move mgmt device block/unblock event handling into adapter code
Johan Hedberg [Mon, 7 Jan 2013 15:26:34 +0000 (17:26 +0200)]
core: Remove useless switch statements in old mgmt code
Johan Hedberg [Mon, 7 Jan 2013 15:22:54 +0000 (17:22 +0200)]
core: Make adapter_bonding_complete private to adapter.c
Johan Hedberg [Mon, 7 Jan 2013 15:20:10 +0000 (17:20 +0200)]
core: Move mgmt new long term key event handling into adapter code
Johan Hedberg [Mon, 7 Jan 2013 15:11:28 +0000 (17:11 +0200)]
core: Move mgmt link key event into adapter code
Johan Hedberg [Mon, 7 Jan 2013 14:57:07 +0000 (16:57 +0200)]
core: Move mgmt auth failed handling into adapter code
Johan Hedberg [Mon, 7 Jan 2013 14:41:07 +0000 (16:41 +0200)]
core: Make adapter_update_found_devices function private to adapter.c
Johan Hedberg [Mon, 7 Jan 2013 14:40:24 +0000 (16:40 +0200)]
core: Move mgmt device found event handling into adapter code
Johan Hedberg [Mon, 7 Jan 2013 14:39:14 +0000 (16:39 +0200)]
core: Add missing const qualifier to adapter_update_found_devices
Johan Hedberg [Mon, 7 Jan 2013 14:19:59 +0000 (16:19 +0200)]
core: Remove unused read_device_pairable function
Johan Hedberg [Mon, 7 Jan 2013 14:19:02 +0000 (16:19 +0200)]
core: Remove missed out references to Pairable storage setting
Frédéric Danis [Mon, 7 Jan 2013 10:53:31 +0000 (11:53 +0100)]
adapter: Fix storage to be used by BlueZ 4 or 5
Conversion should be performed only one time, but using "converted"
entry in device related files generates a bogus device object with
dev_CONVERTED path when starting BlueZ 4.
If "settings" file has been created we've done the conversion and
we can use it to check if conversion has already been done.
Remove "converted" entries in converted files
Anderson Lizardo [Mon, 7 Jan 2013 11:56:35 +0000 (07:56 -0400)]
health: Use SDP_IS_TEXT_STR()/SDP_IS_SEQ() where possible
Anderson Lizardo [Mon, 7 Jan 2013 11:56:34 +0000 (07:56 -0400)]
lib: Use SDP_IS_TEXT_STR()/SDP_IS_SEQ() where possible