OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agounit: Add advertising data from Citizen Proximity watch for testing
Marcel Holtmann [Sun, 13 Jan 2013 03:00:10 +0000 (19:00 -0800)]
unit: Add advertising data from Citizen Proximity watch for testing

11 years agoshared: Resetting watch identifier is done in the destroy handler
Marcel Holtmann [Sat, 12 Jan 2013 01:53:03 +0000 (17:53 -0800)]
shared: Resetting watch identifier is done in the destroy handler

11 years agoshared: Use protocol family constant instead of address family
Marcel Holtmann [Sat, 12 Jan 2013 00:02:37 +0000 (16:02 -0800)]
shared: Use protocol family constant instead of address family

11 years agotester: Add -l command line switch for listing test cases
Johan Hedberg [Fri, 11 Jan 2013 22:12:25 +0000 (00:12 +0200)]
tester: Add -l command line switch for listing test cases

11 years agotester: Add -p option to filter which test to be executed
Johan Hedberg [Fri, 11 Jan 2013 21:48:36 +0000 (23:48 +0200)]
tester: Add -p option to filter which test to be executed

11 years agoshared: Remove line with one single empty space in it
Marcel Holtmann [Fri, 11 Jan 2013 21:54:30 +0000 (13:54 -0800)]
shared: Remove line with one single empty space in it

11 years agoRelease 5.1
Marcel Holtmann [Fri, 11 Jan 2013 19:07:49 +0000 (11:07 -0800)]
Release 5.1

11 years agocore: Add comment about loading empty key lists into the kernel
Marcel Holtmann [Fri, 11 Jan 2013 19:01:32 +0000 (11:01 -0800)]
core: Add comment about loading empty key lists into the kernel

11 years agobuild: Update library version
Marcel Holtmann [Fri, 11 Jan 2013 18:37:24 +0000 (10:37 -0800)]
build: Update library version

11 years agoobexd: Don't bother with trying to handle SIGPIPE
Marcel Holtmann [Fri, 11 Jan 2013 17:45:40 +0000 (09:45 -0800)]
obexd: Don't bother with trying to handle SIGPIPE

11 years agoAVRCP: Fix crash when MediaPlayer1 is disabled
Luiz Augusto von Dentz [Fri, 11 Jan 2013 14:19:09 +0000 (16:19 +0200)]
AVRCP: Fix crash when MediaPlayer1 is disabled

When MediaPlayer1 is disabled we should not proceed with getting
remote capabilities but switch back to 1.0 mode.

11 years agoemulator: Add support for HCI_LE_Set_Advertising_Data command
Johan Hedberg [Fri, 11 Jan 2013 14:00:01 +0000 (16:00 +0200)]
emulator: Add support for HCI_LE_Set_Advertising_Data command

11 years agotools: Add HCI command monitoring for mgmt link security test
Johan Hedberg [Fri, 11 Jan 2013 13:40:10 +0000 (15:40 +0200)]
tools: Add HCI command monitoring for mgmt link security test

11 years agotools: Add mgmt test case for link security when powered on
Johan Hedberg [Fri, 11 Jan 2013 13:35:27 +0000 (15:35 +0200)]
tools: Add mgmt test case for link security when powered on

11 years agotools: Add HCI command monitoring to discoverable on/off tests
Johan Hedberg [Fri, 11 Jan 2013 13:10:30 +0000 (15:10 +0200)]
tools: Add HCI command monitoring to discoverable on/off tests

11 years agotools: Add mgmt test case for discoverable off while powered
Johan Hedberg [Fri, 11 Jan 2013 12:38:08 +0000 (14:38 +0200)]
tools: Add mgmt test case for discoverable off while powered

11 years agotools: Fix discoverable off test case name in logs
Johan Hedberg [Fri, 11 Jan 2013 12:31:44 +0000 (14:31 +0200)]
tools: Fix discoverable off test case name in logs

11 years agotools: Add mgmt test for setting connectable when powered on
Johan Hedberg [Fri, 11 Jan 2013 12:21:39 +0000 (14:21 +0200)]
tools: Add mgmt test for setting connectable when powered on

11 years agotools: Add basic HCI command monitoring callback to mgmt-tester
Johan Hedberg [Fri, 11 Jan 2013 11:15:29 +0000 (13:15 +0200)]
tools: Add basic HCI command monitoring callback to mgmt-tester

11 years agotools: Add set_link_security tests to mgmt-tester
Johan Hedberg [Fri, 11 Jan 2013 10:43:27 +0000 (12:43 +0200)]
tools: Add set_link_security tests to mgmt-tester

11 years agounit: Providing empty info() implementation is no longer needed
Marcel Holtmann [Fri, 11 Jan 2013 04:06:14 +0000 (20:06 -0800)]
unit: Providing empty info() implementation is no longer needed

11 years agocore: Turn message about device id into debug statement
Marcel Holtmann [Fri, 11 Jan 2013 04:05:51 +0000 (20:05 -0800)]
core: Turn message about device id into debug statement

11 years agobuild: Fix --disable-optimization configure option
Anderson Lizardo [Tue, 8 Jan 2013 15:46:26 +0000 (11:46 -0400)]
build: Fix --disable-optimization configure option

On commit cc9e4e7cae0379864ea06038d92bf7ecc192bba7, this flag was
mistakenly replaced with the behavior of the old --enable-fortify
option.

This patch restores the "-O0" flag when --disable-optimization is used.

Unfortunately, this is not enough to disable build optimization. By
default, autoconf adds -O2 to CFLAGS if the compiler is GCC. AM_CFLAGS
(where -O0 is added with --disable-optimization) is passed as argument
to GCC before autoconf CFLAGS, so it is not possible to override the
default -O2. One solution is to use:

CFLAGS= ./configure --disable-optimization

i.e. remove -O2 from CFLAGS, and let autoconf add -O0.

11 years agoattrib: Fix compilation errors when compiled without optimization
Anderson Lizardo [Tue, 8 Jan 2013 15:46:27 +0000 (11:46 -0400)]
attrib: Fix compilation errors when compiled without optimization

Fix these build errors:

attrib/att.c: In function ‘dec_read_by_grp_req’:
attrib/att.c:165:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c:170:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c: In function ‘dec_read_by_type_req’:
attrib/att.c:393:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]
attrib/att.c:402:10: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]

11 years agotools: Fix using DBusBasicValue
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

11 years agotools: Update mpris-player to register using MPRIS interface
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.

11 years agomedia: Implement new RegisterPlayer API
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

11 years agotest: Update test-player to register using MPRIS interface
Luiz Augusto von Dentz [Tue, 8 Jan 2013 08:47:55 +0000 (10:47 +0200)]
test: Update test-player to register using MPRIS interface

11 years agomedia-api: Change RegisterPlayer to use MPRIS spec
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/

11 years agotools: Adapt mpris-player to new API of MediaPlayer1
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

11 years agotest: Adapt simple-player to the new API of MediaPlayer1
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

11 years agomedia: Adapt RegisterPlayer to changes in 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.

11 years agoplayer: Add Device property
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.

11 years agoAVRCP: Always create a controller player even for version 1.0
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.

11 years agoplayer: Fix documentation to use TrackNumber in track metadata
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.

11 years agoplayer: Add support for button controls
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

11 years agoplayer: Remove GetTrack and TrackChanged
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

11 years agomedia-api: Add playback control methods to 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.

11 years agounit: Fix remaining references to bluetooth/uuid.h
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".

11 years agoattrib: Fix remaining references to bluetooth/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".

11 years agoproximity: Fix remaining references to bluetooth/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".

11 years agotime: Fix remaining references to bluetooth/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".

11 years agoalert: Fix remaining references to bluetooth/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".

11 years agoscanparam: Fix remaining references to bluetooth/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".

11 years agogatt: Fix remaining references to bluetooth/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".

11 years agoinput: Fix remaining references to bluetooth/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".

11 years agoplugins: Fix remaining references to bluetooth/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".

11 years agocore: Fix remaining references to bluetooth/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".

11 years agounit: Avoid D-Bus calling _exit() during SDP tests
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.

11 years agotools: Fix up testing of discoverable management command
Marcel Holtmann [Thu, 10 Jan 2013 07:11:44 +0000 (23:11 -0800)]
tools: Fix up testing of discoverable management command

11 years agodoc: Clarify the error codes of some management commands
Marcel Holtmann [Thu, 10 Jan 2013 06:59:34 +0000 (22:59 -0800)]
doc: Clarify the error codes of some management commands

11 years agobuild: Enable Bluetooth library for distribution builds
Marcel Holtmann [Thu, 10 Jan 2013 04:32:40 +0000 (20:32 -0800)]
build: Enable Bluetooth library for distribution builds

11 years agobuild: Only install old legacy Bluetooth library headers
Marcel Holtmann [Thu, 10 Jan 2013 04:32:12 +0000 (20:32 -0800)]
build: Only install old legacy Bluetooth library headers

11 years agomonitor: Fix includes from Bluetooth library
Marcel Holtmann [Thu, 10 Jan 2013 04:31:18 +0000 (20:31 -0800)]
monitor: Fix includes from Bluetooth library

11 years agotools: Fix includes for mgmt.h
Marcel Holtmann [Thu, 10 Jan 2013 04:31:07 +0000 (20:31 -0800)]
tools: Fix includes for mgmt.h

11 years agoobexd: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:43 +0000 (20:30 -0800)]
obexd: Fix includes for uuid.h

11 years agoprofiles: Fix includes for uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:30 +0000 (20:30 -0800)]
profiles: Fix includes for uuid.h

11 years agocore: Fix includes for mgmt.h and uuid.h
Marcel Holtmann [Thu, 10 Jan 2013 04:30:09 +0000 (20:30 -0800)]
core: Fix includes for mgmt.h and uuid.h

11 years agoshared: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:59 +0000 (19:45 -0800)]
shared: Remove redundant include

11 years agotools: Remove redundant include
Marcel Holtmann [Thu, 10 Jan 2013 03:45:17 +0000 (19:45 -0800)]
tools: Remove redundant include

11 years agolib: Remove all management settings helpers since they are unused now
Marcel Holtmann [Thu, 10 Jan 2013 03:44:00 +0000 (19:44 -0800)]
lib: Remove all management settings helpers since they are unused now

11 years agocore: Fix setting up discoverable from stored settings on power on
Marcel Holtmann [Thu, 10 Jan 2013 03:43:19 +0000 (19:43 -0800)]
core: Fix setting up discoverable from stored settings on power on

11 years agolib: Remove current unused management settings helpers
Marcel Holtmann [Thu, 10 Jan 2013 03:13:07 +0000 (19:13 -0800)]
lib: Remove current unused management settings helpers

11 years agoshared: Use < for management commands and > for events
Marcel Holtmann [Thu, 10 Jan 2013 03:00:45 +0000 (19:00 -0800)]
shared: Use < for management commands and > for events

11 years agocore: Add support for graceful shutdown of adapters
Marcel Holtmann [Thu, 10 Jan 2013 02:56:31 +0000 (18:56 -0800)]
core: Add support for graceful shutdown of adapters

11 years agounit: Print D-Bus error message in verbose mode
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.

11 years agocore: Don't bother with return value for setting device class
Marcel Holtmann [Thu, 10 Jan 2013 00:55:05 +0000 (16:55 -0800)]
core: Don't bother with return value for setting device class

11 years agocore: Don't bother with major and minor class for LE only adapters
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.

11 years agocore: Load link keys and long term keys only when controller supports it
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.

11 years agodoc: Add missing empty return parameters for load long term keys
Marcel Holtmann [Wed, 9 Jan 2013 20:03:45 +0000 (12:03 -0800)]
doc: Add missing empty return parameters for load long term keys

11 years agounit: Add advertising data from Cookoo watch for testing
Marcel Holtmann [Wed, 9 Jan 2013 19:35:33 +0000 (11:35 -0800)]
unit: Add advertising data from Cookoo watch for testing

11 years agounit: Rename x_pdu() macro on SDP test program
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 }

11 years agounit: Reuse define_test() macro for /TP/SERVER/BRW/* tests
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.

11 years agocore: Fix canceling all types of agent requests
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.

11 years agosdp-xml: Remove newline before EOF
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:49 +0000 (17:07 +0530)]
sdp-xml: Remove newline before EOF

11 years agoaudio: Remove unused struct audio_adapter
Syam Sidhardhan [Tue, 8 Jan 2013 11:37:48 +0000 (17:07 +0530)]
audio: Remove unused struct audio_adapter

11 years agounit: Replace g_test_fail() with g_assert_not_reached()
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

11 years agohealth: Fix possible use after free
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.

11 years agohealth: Fix pointer to local variable out-of-scope
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.

11 years agounit: Fix hardcoded test for complete name in EIR
Johan Hedberg [Wed, 9 Jan 2013 08:27:05 +0000 (10:27 +0200)]
unit: Fix hardcoded test for complete name in EIR

11 years agotools: Add helper for extracting advertising data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 06:30:48 +0000 (22:30 -0800)]
tools: Add helper for extracting advertising data out of btsnoop files

11 years agounit: Add advertising data from Wahoo BlueSC for testing
Marcel Holtmann [Wed, 9 Jan 2013 06:30:01 +0000 (22:30 -0800)]
unit: Add advertising data from Wahoo BlueSC for testing

11 years agounit: Add inquiry data from Nike+ FuelBand for testing
Marcel Holtmann [Wed, 9 Jan 2013 04:10:02 +0000 (20:10 -0800)]
unit: Add inquiry data from Nike+ FuelBand for testing

11 years agounit: Add inquiry data from iPhone 5 and iPad mini 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

11 years agotools: Add helper for extracting EIR data out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 03:46:29 +0000 (19:46 -0800)]
tools: Add helper for extracting EIR data out of btsnoop files

11 years agounit: Add inquiry data from MacBook Air for testing
Marcel Holtmann [Wed, 9 Jan 2013 03:45:28 +0000 (19:45 -0800)]
unit: Add inquiry data from MacBook Air for testing

11 years agotools: Add helper for extracting SDP PDUs out of btsnoop files
Marcel Holtmann [Wed, 9 Jan 2013 02:50:42 +0000 (18:50 -0800)]
tools: Add helper for extracting SDP PDUs out of btsnoop files

11 years agolib: Fix SDP_TEXT_STR16/SDP_URL_STR16 parsing
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;

11 years agodoc: Improve documentation of mgmt events
Johan Hedberg [Tue, 8 Jan 2013 18:50:14 +0000 (20:50 +0200)]
doc: Improve documentation of mgmt events

11 years agodoc: Update descriptions and possible error returns of mgmt commands
Johan Hedberg [Tue, 8 Jan 2013 13:52:04 +0000 (15:52 +0200)]
doc: Update descriptions and possible error returns of mgmt commands

11 years agomedia: Clarify Acquire/TryAcquire error cases
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.

11 years agomedia: Add HFP/HSP gains to transport API
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.

11 years agocore: Remove no longer used src/mgmt.{c,h}
Johan Hedberg [Tue, 8 Jan 2013 11:22:45 +0000 (13:22 +0200)]
core: Remove no longer used src/mgmt.{c,h}

11 years agocore: Move mgmt user passkey notify handling to adapter code
Johan Hedberg [Tue, 8 Jan 2013 11:21:05 +0000 (13:21 +0200)]
core: Move mgmt user passkey notify handling to adapter code

11 years agocore: Move mgmt user passkey request 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

11 years agocore: Move mgmt user confirm 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

11 years agocore: Make btd_adapter_get_pin private to adapter.c
Johan Hedberg [Tue, 8 Jan 2013 09:41:52 +0000 (11:41 +0200)]
core: Make btd_adapter_get_pin private to adapter.c

11 years agocore: Move mgmt PIN code handling into adapter code
Johan Hedberg [Tue, 8 Jan 2013 09:36:57 +0000 (11:36 +0200)]
core: Move mgmt PIN code handling into adapter code

11 years agoaudio: Replace g_hash_table_contains() with g_hash_table_lookup()
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()

11 years agocore: Cancel pending confirm name commands if present
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.