OSDN Git Service

android-x86/external-bluetooth-bluez.git
11 years agothermometer: Use dedicated handler for Intermediate Temperature
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:46 +0000 (09:55 +0100)]
thermometer: Use dedicated handler for Intermediate Temperature

This patch replaces global notifications handler with one registered only
for Intermediate Temperature value notifications.

11 years agothermometer: Store Measurement Interval value handle in struct
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:45 +0000 (09:55 +0100)]
thermometer: Store Measurement Interval value handle in struct

This patch adds Measurement Interval value handle directly into
thermometer struct. This way there's no need to traverse list
looking for value.

get_characteristic() function and related helpers are now unused
so can be removed.

11 years agothermometer: Store Intermediate Temperature CCC handle in struct
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:44 +0000 (09:55 +0100)]
thermometer: Store Intermediate Temperature CCC handle in struct

This patch adds Intermediate Measurement CCC handle value directly into
thermometer struct. This way there's no need to traverse nested lists
looking for value.

write_ccc() function and related helpers are now unused so can be
removed.

11 years agothermometer: Store Temperature Measurement CCC handle in struct
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:43 +0000 (09:55 +0100)]
thermometer: Store Temperature Measurement CCC handle in struct

This patch adds Temperature Measurement CCC handle value directly into
thermometer struct. This way there's no need to traverse nested lists
looking for value.

11 years agodoc: Remove leftover PropertyChanged from media-api.txt
Johan Hedberg [Fri, 30 Nov 2012 11:17:43 +0000 (13:17 +0200)]
doc: Remove leftover PropertyChanged from media-api.txt

11 years agobuild: Add missing lib/amp.h to Makefile.am
Johan Hedberg [Fri, 30 Nov 2012 10:42:31 +0000 (12:42 +0200)]
build: Add missing lib/amp.h to Makefile.am

11 years agotest: Convert simple-player to use DBus properties interface
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:25 +0000 (14:51 +0200)]
test: Convert simple-player to use DBus properties interface

11 years agotest: Convert mpris-player to use DBus properties interface
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:24 +0000 (14:51 +0200)]
test: Convert mpris-player to use DBus properties interface

11 years agomedia-api: Update documentation of MediaPlayer interface
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:23 +0000 (14:51 +0200)]
media-api: Update documentation of MediaPlayer interface

11 years agomedia: Convert target MediaPlayer interface to use D-Bus Properties
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:22 +0000 (14:51 +0200)]
media: Convert target MediaPlayer interface to use D-Bus Properties

11 years agoaudio: Convert controller MediaPlayer interface to use D-Bus Properties
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:21 +0000 (14:51 +0200)]
audio: Convert controller MediaPlayer interface to use D-Bus Properties

11 years agogdbus: Add g_dbus_add_properties_watch function
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:20 +0000 (14:51 +0200)]
gdbus: Add g_dbus_add_properties_watch function

Convenient function to create watches for D-Bus properties.

11 years agocore: Attach and detach object manager
Lucas De Marchi [Thu, 29 Nov 2012 13:19:33 +0000 (11:19 -0200)]
core: Attach and detach object manager

11 years agogdbus: Don't automatically attach ObjectManager
Lucas De Marchi [Thu, 29 Nov 2012 13:19:32 +0000 (11:19 -0200)]
gdbus: Don't automatically attach ObjectManager

Let each project attach the object manager interface instead of
registering it automatically.

11 years agogdbus: Don't register DBus.Properties with no properties
Lucas De Marchi [Thu, 29 Nov 2012 13:19:31 +0000 (11:19 -0200)]
gdbus: Don't register DBus.Properties with no properties

Delay registering DBus.Properties interface until the moment there are
properties on that path. This is needed for objects that currently don't
expose any property to not export the interface.

11 years agocontrol: Remove duplicated documentation entry
João Paulo Rechi Vita [Thu, 29 Nov 2012 13:38:55 +0000 (10:38 -0300)]
control: Remove duplicated documentation entry

11 years agomedia: Remove left over of HFP removal
Luiz Augusto von Dentz [Thu, 29 Nov 2012 09:06:36 +0000 (11:06 +0200)]
media: Remove left over of HFP removal

11 years agomedia-api: Update documentation of MediaTransport interface
Luiz Augusto von Dentz [Thu, 29 Nov 2012 09:06:35 +0000 (11:06 +0200)]
media-api: Update documentation of MediaTransport interface

11 years agomedia: Convert target MediaTransport interface to use D-Bus Properties
Luiz Augusto von Dentz [Thu, 29 Nov 2012 09:06:34 +0000 (11:06 +0200)]
media: Convert target MediaTransport interface to use D-Bus Properties

11 years agoadapter: Fix improper freeing with g_free in convert_config
Szymon Janc [Wed, 28 Nov 2012 15:17:36 +0000 (16:17 +0100)]
adapter: Fix improper freeing with g_free in convert_config

Memory in textfile_get is allocated with malloc and it should be freed
with free not g_free.

11 years agoadapter: Fix memory leak in convert_config
Szymon Janc [Wed, 28 Nov 2012 15:17:35 +0000 (16:17 +0100)]
adapter: Fix memory leak in convert_config

'converted' was not freed if config file was already converted.

11 years agoinput: _GNU_SOURCE is needed for O_CLOEXEC on some systems
Johan Hedberg [Wed, 28 Nov 2012 14:42:36 +0000 (16:42 +0200)]
input: _GNU_SOURCE is needed for O_CLOEXEC on some systems

11 years agomonitor: _GNU_SOURCE is needed for O_CLOEXEC on some systems
Johan Hedberg [Wed, 28 Nov 2012 14:36:50 +0000 (16:36 +0200)]
monitor: _GNU_SOURCE is needed for O_CLOEXEC on some systems

11 years agobtsnoop: _GNU_SOURCE is needed for O_CLOEXEC on some systems
Johan Hedberg [Wed, 28 Nov 2012 14:36:08 +0000 (16:36 +0200)]
btsnoop: _GNU_SOURCE is needed for O_CLOEXEC on some systems

11 years agobtsnoop: Fix missing sys/stat.h include needed by S_IRUSR
Johan Hedberg [Wed, 28 Nov 2012 14:30:23 +0000 (16:30 +0200)]
btsnoop: Fix missing sys/stat.h include needed by S_IRUSR

11 years agorctest: Fix missing sys/stat.h include needed by S_IRUSR
Johan Hedberg [Wed, 28 Nov 2012 14:15:53 +0000 (16:15 +0200)]
rctest: Fix missing sys/stat.h include needed by S_IRUSR

11 years agowiimote: add Wii-Remote-Plus ID and name detection
David Herrmann [Mon, 22 Oct 2012 08:31:20 +0000 (10:31 +0200)]
wiimote: add Wii-Remote-Plus ID and name detection

The Nintendo Wii Remote Plus uses a new product ID and name. To detect
them properly, we need to add them to the wiimote-module.

To avoid an overlong "if" statement, this converts the match-function to
walk over an array and check all VID/PID pairs and device-names. This
makes adding new devices much easier.

11 years agoemulator: Add handling for monitor server instance
Marcel Holtmann [Tue, 27 Nov 2012 09:26:23 +0000 (10:26 +0100)]
emulator: Add handling for monitor server instance

11 years agonetwork: Only export UUID and Interface properties while connected
Luiz Augusto von Dentz [Mon, 26 Nov 2012 15:31:52 +0000 (17:31 +0200)]
network: Only export UUID and Interface properties while connected

11 years agobuild: Fix make distcheck
Luiz Augusto von Dentz [Mon, 26 Nov 2012 15:00:13 +0000 (17:00 +0200)]
build: Fix make distcheck

Remove doc/input-api.txt and doc/audio-api.txt also from Makefile.am

11 years agobuild: Remove test-network
Luiz Augusto von Dentz [Mon, 26 Nov 2012 14:39:37 +0000 (16:39 +0200)]
build: Remove test-network

test-network is no longer needed since Network interface does not have
Connect/Disconnect methods anymore and similar functionality is already
provided by test-device.

11 years agobuild: Remove test-input
Luiz Augusto von Dentz [Mon, 26 Nov 2012 14:36:42 +0000 (16:36 +0200)]
build: Remove test-input

test-audio is no longer needed since the Input interface is now removed
and similar functionality is already provided by test-device.

11 years agobuild: Remove test-audio
Luiz Augusto von Dentz [Mon, 26 Nov 2012 14:32:43 +0000 (16:32 +0200)]
build: Remove test-audio

test-audio is no longer needed since the Audio interface is now removed
and similar functionality is already provided by test-device.

11 years agotest: Add RequestDisconnection support to test-hfp
Johan Hedberg [Mon, 26 Nov 2012 14:59:34 +0000 (16:59 +0200)]
test: Add RequestDisconnection support to test-hfp

11 years agonetwork: Fix invalid read on exit
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:22 +0000 (15:09 +0200)]
network: Fix invalid read on exit

Invalid read of size 1
   at 0x4A09D91: strcmp (mc_replace_strmem.c:729)
   by 0x4C6C768: g_str_equal (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x1446B7: connection_disconnect (connection.c:451)
   by 0x141DEA: disconnect_profile (manager.c:120)
   by 0x4C96C5C: g_slist_foreach (in /usr/lib64/libglib-2.0.so.0.3200.4)
   by 0x182B2D: device_remove (device.c:2034)
   by 0x178809: adapter_remove (adapter.c:2902)
   by 0x173902: manager_cleanup (manager.c:256)
   by 0x1217B9: main (main.c:550)
 Address 0x0 is not stack'd, malloc'd or (recently) free'd

In addition remove owner since it is no longer possible to track the
owner as this is done in the core.

11 years agonetwork: Fix always attempting to connect to PANU service
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:21 +0000 (15:09 +0200)]
network: Fix always attempting to connect to PANU service

connection_connect takes the remote role as parameter not the local one.

11 years agonetwork: Fix trying to register NetworkServer interface multiple times
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:20 +0000 (15:09 +0200)]
network: Fix trying to register NetworkServer interface multiple times

This also removes the limitation of only accepting nap as UUID, now all
PAN UUID are supported including their friendly names.

11 years agonetwork: Fix not responding to Device.ConnectProfile
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:19 +0000 (15:09 +0200)]
network: Fix not responding to Device.ConnectProfile

The callback passed to connection_connect has to be used to respond when
the connection completes.

11 years agonetwork: Remove Network.Connect and Network.Disconnect
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:18 +0000 (15:09 +0200)]
network: Remove Network.Connect and Network.Disconnect

These method are no longer necessary as Device interface has similar
functionality.

11 years agonetwork: Make use of D-Bus Properties interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:17 +0000 (15:09 +0200)]
network: Make use of D-Bus Properties interface

11 years agoinput: Remove Input interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:16 +0000 (15:09 +0200)]
input: Remove Input interface

This interface is no longer needed as Device interface can now connect
the profiles.

11 years agoaudio: Remove Control.Connect and Control.Disconnect
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:15 +0000 (15:09 +0200)]
audio: Remove Control.Connect and Control.Disconnect

These method are no longer necessary as Device interface has similar
functionality.

11 years agoaudio: Remove Audio interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:14 +0000 (15:09 +0200)]
audio: Remove Audio interface

This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.

11 years agoaudio: Remove AudioSource interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:13 +0000 (15:09 +0200)]
audio: Remove AudioSource interface

This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.

11 years agoaudio: Remove AudioSink interface
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:12 +0000 (15:09 +0200)]
audio: Remove AudioSink interface

This interface is no longer needed as Device interface can now connect
the profiles and the state can be tracked using MediaTransport interface.

11 years agodevice: Pass correct DBusMessage parameter to btd_error_failed
Johan Hedberg [Mon, 26 Nov 2012 14:16:27 +0000 (16:16 +0200)]
device: Pass correct DBusMessage parameter to btd_error_failed

11 years agocore: Fix reading D-Bus boolean parameters too local bool type
Johan Hedberg [Mon, 26 Nov 2012 14:03:55 +0000 (16:03 +0200)]
core: Fix reading D-Bus boolean parameters too local bool type

The D-Bus boolean type may be larger than the local bool type which can
lead to writing past the memory space of the local variable. To fix
this, use a temporary dbus_bool_t variable before assigning to the local
type.

11 years agotest: Remove AutoConnect from test-hfp since it's now the default
Johan Hedberg [Mon, 26 Nov 2012 13:07:23 +0000 (15:07 +0200)]
test: Remove AutoConnect from test-hfp since it's now the default

11 years agoformfactor: Remove not needed empty remove callback
Szymon Janc [Mon, 26 Nov 2012 11:48:44 +0000 (12:48 +0100)]
formfactor: Remove not needed empty remove callback

Remove callback is called only if it is not NULL so there is no need to
register empty callback function.

11 years agoadaptername: Remove not needed empty remove callback
Szymon Janc [Mon, 26 Nov 2012 11:48:43 +0000 (12:48 +0100)]
adaptername: Remove not needed empty remove callback

Remove callback is called only if it is not NULL so there is no need to
register empty callback function.

11 years agocore: Send a "cancelled" response to Device.Connect when disconnecting
Johan Hedberg [Mon, 26 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Send a "cancelled" response to Device.Connect when disconnecting

11 years agocore: Fix cleaning up pending connect list if a profile fails
Johan Hedberg [Mon, 26 Nov 2012 12:14:56 +0000 (14:14 +0200)]
core: Fix cleaning up pending connect list if a profile fails

11 years agoadapter: Call driver remove callback when unregistering driver
Szymon Janc [Mon, 26 Nov 2012 09:07:38 +0000 (10:07 +0100)]
adapter: Call driver remove callback when unregistering driver

This seems to be what plugins expect as only dbusoob explicite called
its remove function before unregistering adapter drivers.

This results in cleaner shutdown path:

Without patch:
bluetoothd[13563]: src/mgmt.c:mgmt_remove_uuid() index 0
bluetoothd[13563]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=4
bluetoothd[13563]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=3
bluetoothd[13563]: Stopping SDP server
bluetoothd[13563]: Exit
==13563==
==13563== HEAP SUMMARY:
==13563==     in use at exit: 64,908 bytes in 395 blocks
==13563==   total heap usage: 7,035 allocs, 6,640 frees, 4,432,371 bytes allocated
==13563==
==13563== LEAK SUMMARY:
==13563==    definitely lost: 0 bytes in 0 blocks
==13563==    indirectly lost: 0 bytes in 0 blocks
==13563==      possibly lost: 17,429 bytes in 169 blocks
==13563==    still reachable: 47,479 bytes in 226 blocks
==13563==         suppressed: 0 bytes in 0 blocks

With patch:
bluetoothd[13301]: src/mgmt.c:mgmt_remove_uuid() index 0
bluetoothd[13301]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=1
bluetoothd[13301]: src/adapter.c:btd_adapter_unref() 0x606b2a0: ref=0
bluetoothd[13301]: src/adapter.c:adapter_free() 0x606b2a0
bluetoothd[13301]: Stopping SDP server
bluetoothd[13301]: Exit
==13301==
==13301== HEAP SUMMARY:
==13301==     in use at exit: 64,954 bytes in 348 blocks
==13301==   total heap usage: 7,247 allocs, 6,899 frees, 4,625,672 bytes allocated
==13301==
==13301== LEAK SUMMARY:
==13301==    definitely lost: 0 bytes in 0 blocks
==13301==    indirectly lost: 0 bytes in 0 blocks
==13301==      possibly lost: 17,334 bytes in 150 blocks
==13301==    still reachable: 47,620 bytes in 198 blocks
==13301==         suppressed: 0 bytes in 0 blocks

11 years agocore: Don't do reverse SDP when services are already resolved
Johan Hedberg [Mon, 26 Nov 2012 11:22:35 +0000 (13:22 +0200)]
core: Don't do reverse SDP when services are already resolved

11 years agocore: Add auto_connect entries to profile defaults
Johan Hedberg [Mon, 26 Nov 2012 11:12:27 +0000 (13:12 +0200)]
core: Add auto_connect entries to profile defaults

11 years agoaudio: Fix missing AVCTP security level
Johan Hedberg [Mon, 26 Nov 2012 10:54:51 +0000 (12:54 +0200)]
audio: Fix missing AVCTP security level

11 years agodevice: Fix leaking browse request DBusMessage
Johan Hedberg [Mon, 26 Nov 2012 10:43:11 +0000 (12:43 +0200)]
device: Fix leaking browse request DBusMessage

11 years agodevice: Add btd_ prefix to device_set_pnpid()
Vinicius Costa Gomes [Fri, 23 Nov 2012 20:30:30 +0000 (17:30 -0300)]
device: Add btd_ prefix to device_set_pnpid()

As device_set_pnpid() is used inside a plugin it should have the btd_
prefix.

11 years agoaudio: Remove deprecated Connected/Disconnected signals
Johan Hedberg [Sat, 24 Nov 2012 10:39:53 +0000 (12:39 +0200)]
audio: Remove deprecated Connected/Disconnected signals

11 years agoaudio: Remove deprecated Control.IsConnected method
Johan Hedberg [Sat, 24 Nov 2012 10:36:57 +0000 (12:36 +0200)]
audio: Remove deprecated Control.IsConnected method

11 years agohog: Fix output report
Vinicius Costa Gomes [Fri, 23 Nov 2012 19:08:29 +0000 (16:08 -0300)]
hog: Fix output report

Even if we receive the output report with the report id included, we
must send the output report without the report id, as the remote side
is able to infer it using the handle.

11 years agohog: Fix potencial segfault when sending a output report
Vinicius Costa Gomes [Fri, 23 Nov 2012 19:08:28 +0000 (16:08 -0300)]
hog: Fix potencial segfault when sending a output report

As UHID is not notified when the device is disconnected, it may be
possible that an output report is forwarded when the device is not
connected, one example, would be when the caps lock key is pressed on
another keyboard.

11 years agosdptool: Add missing UUID entries for MAP and HSP
Johan Hedberg [Fri, 23 Nov 2012 12:34:18 +0000 (14:34 +0200)]
sdptool: Add missing UUID entries for MAP and HSP

11 years agolib: Add missing svclass entries for MAP
Johan Hedberg [Fri, 23 Nov 2012 12:33:49 +0000 (14:33 +0200)]
lib: Add missing svclass entries for MAP

11 years agotest: Add auto-trust and auto-connect to simple-agent
Johan Hedberg [Fri, 23 Nov 2012 11:51:47 +0000 (13:51 +0200)]
test: Add auto-trust and auto-connect to simple-agent

11 years agodevice: Update reverse discovery timer from 2 to 1 second
Johan Hedberg [Fri, 23 Nov 2012 11:52:43 +0000 (13:52 +0200)]
device: Update reverse discovery timer from 2 to 1 second

There's no reason to wait so long for reverse discovery. We still don't
want this to be immediate since it's likely that the pairing initiator
is starting to do discovery right after pairing, but 1 second should be
good.

11 years agomonitor: Decode LMP features pages
Marcel Holtmann [Thu, 22 Nov 2012 09:43:42 +0000 (10:43 +0100)]
monitor: Decode LMP features pages

11 years agohciconfig: Add an option to set which advertise type will be on
Jefferson Delfes [Wed, 21 Nov 2012 20:16:11 +0000 (16:16 -0400)]
hciconfig: Add an option to set which advertise type will be on

There are some advertise types that can be used, so we need a way to
tell which one we want. The default one is ADV_IND.

11 years agomonitor: Add missing HCI testing commands
Marcel Holtmann [Thu, 22 Nov 2012 06:54:54 +0000 (07:54 +0100)]
monitor: Add missing HCI testing commands

11 years agomonitor: Add HCI commands from CSA2 and CSA3
Marcel Holtmann [Wed, 21 Nov 2012 19:24:23 +0000 (20:24 +0100)]
monitor: Add HCI commands from CSA2 and CSA3

11 years agoTODO: Add entry about built-in profiles connection management by core
Luiz Augusto von Dentz [Wed, 21 Nov 2012 15:12:42 +0000 (17:12 +0200)]
TODO: Add entry about built-in profiles connection management by core

11 years agodevice: Retrieve device pnp ids from storage
Frédéric Danis [Wed, 21 Nov 2012 13:49:51 +0000 (14:49 +0100)]
device: Retrieve device pnp ids from storage

When device pnp ids are updated, save them and emit property
changed signals.

11 years agoadapter: Convert storage did file
Frédéric Danis [Wed, 21 Nov 2012 13:49:50 +0000 (14:49 +0100)]
adapter: Convert storage did file

11 years agodevice: Retrieve device blocked from storage
Frédéric Danis [Wed, 21 Nov 2012 13:49:49 +0000 (14:49 +0100)]
device: Retrieve device blocked from storage

11 years agoadapter: Convert storage device blocked
Frédéric Danis [Wed, 21 Nov 2012 13:49:48 +0000 (14:49 +0100)]
adapter: Convert storage device blocked

An entry exists in blocked file only when a device is blocked.
So, we do not need to check entry value and set device (entry key) as
blocked.

11 years agodoc: Update settings-storage.txt
Frédéric Danis [Wed, 21 Nov 2012 13:49:47 +0000 (14:49 +0100)]
doc: Update settings-storage.txt

Remote features are not available from user space,
so replace Features entry by SupportedTechnologies.

Device blocked should be saved in device info file.

11 years agocore: Use UUID-16 or UUID-32 when possible when resolving profiles
Johan Hedberg [Wed, 21 Nov 2012 13:40:00 +0000 (15:40 +0200)]
core: Use UUID-16 or UUID-32 when possible when resolving profiles

11 years agocontrol: Add profile .connect and .disconnect
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:18 +0000 (14:10 +0200)]
control: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the avrcp btd_profile.

11 years agocontrol: Expose internal connection API
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:17 +0000 (14:10 +0200)]
control: Expose internal connection API

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.

11 years agosink: Add profile .connect and .disconnect
Mikel Astiz [Wed, 21 Nov 2012 12:10:16 +0000 (14:10 +0200)]
sink: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the a2dp_sink btd_profile.

11 years agosource: Add profile .connect and .disconnect
Mikel Astiz [Wed, 21 Nov 2012 12:10:15 +0000 (14:10 +0200)]
source: Add profile .connect and .disconnect

Add the connection and disconnection hooks to the a2dp_source
btd_profile.

11 years agoaudio: Split A2DP into two btd_profile
Mikel Astiz [Wed, 21 Nov 2012 12:10:14 +0000 (14:10 +0200)]
audio: Split A2DP into two btd_profile

Merging the three audio profiles (AVDTP, A2DP sink and A2DP source)
into one was convenient in the past was doesn't fit very well the new
btd_profile approach. The split is also more consistent with other
existing profiles.

11 years agocore: Fix connection order of Device.Connect
Luiz Augusto von Dentz [Wed, 21 Nov 2012 12:10:13 +0000 (14:10 +0200)]
core: Fix connection order of Device.Connect

We should with higher priority first.

11 years agoneard: Be more consistent in error handling and variable naming
Johan Hedberg [Wed, 21 Nov 2012 12:33:33 +0000 (14:33 +0200)]
neard: Be more consistent in error handling and variable naming

11 years agoneard: Set device class in device object
Frédéric Danis [Wed, 21 Nov 2012 11:59:23 +0000 (12:59 +0100)]
neard: Set device class in device object

As soon as we have info related to a new device,
device object will be created if it does not exist yet.

Change check_device() to use this device object and
remove call to adapter_remove_device() in it.

11 years agoaudio: Remove another leftover of HFP code
Luiz Augusto von Dentz [Tue, 20 Nov 2012 14:50:57 +0000 (16:50 +0200)]
audio: Remove another leftover of HFP code

11 years agodoc: Add HFP design document
Frédéric Danis [Thu, 15 Nov 2012 17:35:39 +0000 (18:35 +0100)]
doc: Add HFP design document

11 years agogdbus: Remove not needed NULL pointer checks
Szymon Janc [Wed, 21 Nov 2012 10:21:03 +0000 (11:21 +0100)]
gdbus: Remove not needed NULL pointer checks

g_strdup returns NULL if argument passed is NULL and there is no need
to double check that.

11 years agomonitor: Handle attribute lists for SDP records
Marcel Holtmann [Wed, 21 Nov 2012 05:26:45 +0000 (06:26 +0100)]
monitor: Handle attribute lists for SDP records

11 years agomonitor: Track SDP continuation for attribute lists
Marcel Holtmann [Wed, 21 Nov 2012 04:35:27 +0000 (05:35 +0100)]
monitor: Track SDP continuation for attribute lists

11 years agomonitor: Handle UUID-32 and UUID-128 values
Marcel Holtmann [Tue, 20 Nov 2012 17:01:01 +0000 (18:01 +0100)]
monitor: Handle UUID-32 and UUID-128 values

11 years agomonitor: Decode SDP element data structures
Marcel Holtmann [Tue, 20 Nov 2012 15:10:44 +0000 (16:10 +0100)]
monitor: Decode SDP element data structures

11 years agomonitor: Add basic attribute UUID decoding
Marcel Holtmann [Tue, 20 Nov 2012 10:56:05 +0000 (11:56 +0100)]
monitor: Add basic attribute UUID decoding

11 years agobuild: Remove stupid -I directives
Marcel Holtmann [Tue, 20 Nov 2012 10:50:48 +0000 (11:50 +0100)]
build: Remove stupid -I directives

11 years agosdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256
Bart Westgeest [Mon, 19 Nov 2012 19:04:32 +0000 (14:04 -0500)]
sdp: Upgrade datatype SEQ8 to SEQ16 when data size is greater than 256

Fixes a bug where the complete sequence data is written, but the size
is truncated to one byte.

11 years agosdp: Limit side effects of sdp_get_data_type and sdp_get_data_size
Bart Westgeest [Mon, 19 Nov 2012 19:04:31 +0000 (14:04 -0500)]
sdp: Limit side effects of sdp_get_data_type and sdp_get_data_size

Remove modification of buf->buf_size in 'get' functions. Data is
still indirectly modified due to recursive nature of code.

Renamed sdp_get_data_type to sdp_get_data_type_size.

11 years agosdp: Inlined single use of function sdp_set_data_type
Bart Westgeest [Mon, 19 Nov 2012 19:04:30 +0000 (14:04 -0500)]
sdp: Inlined single use of function sdp_set_data_type

Inlining single use of sdp_set_data_type to improve code readability,
since the function was doing more than just setting the data type.

11 years agohid2hci: change subsystem in udev rule from usb to usb*
Alexander Holler [Tue, 20 Nov 2012 11:47:08 +0000 (12:47 +0100)]
hid2hci: change subsystem in udev rule from usb to usb*

With kernel 3.6 (commit 7e97243c2080ecae7129e83635227fdebd4feef6) the
class for some devices (e.g. dongles from Logitech) were changed from
usb to usbmisc. As consequence the udev rule for hid2hci didn't work
anymore with kernels >= 3.6.

Changing the subsystem from "usb" to "usb*" matches both "usb" and
"usbmisc" and works with all kernels.

11 years agocore: Fix freeing pending profile messages in device_free
Johan Hedberg [Tue, 20 Nov 2012 12:15:26 +0000 (14:15 +0200)]
core: Fix freeing pending profile messages in device_free

11 years agocore: Implement Device.DisconnectProfile method
Johan Hedberg [Tue, 20 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Implement Device.DisconnectProfile method