OSDN Git Service
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:50 +0000 (09:55 +0100)]
thermometer: Remove storage of all discovered characteristics
This patch removes structures used to keep all discovered characteristics
in thermometer structure. Useful values are already stored directly in
this structure.
characteristic structure is now only used as temporary user data when
discovering descriptors for particular characteristic.
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:49 +0000 (09:55 +0100)]
thermometer: Remove descriptor structure
This patch removes descriptor structure which is now redundant since
useful data are now kept directly in thermometer structure.
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:48 +0000 (09:55 +0100)]
thermometer: Use dedicated handler for Measurement Interval
This patch replaces global indications handler with one registered only
for Measurement Interval value indications.
Andrzej Kaczmarek [Fri, 9 Nov 2012 08:55:47 +0000 (09:55 +0100)]
thermometer: Use dedicated handler for Temperature Measurement
This patch moves Temperature Measurement value indications handler into
separate callback registered for particular handle only.
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.
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.
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.
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.
Johan Hedberg [Fri, 30 Nov 2012 11:17:43 +0000 (13:17 +0200)]
doc: Remove leftover PropertyChanged from media-api.txt
Johan Hedberg [Fri, 30 Nov 2012 10:42:31 +0000 (12:42 +0200)]
build: Add missing lib/amp.h to Makefile.am
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:25 +0000 (14:51 +0200)]
test: Convert simple-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
Luiz Augusto von Dentz [Tue, 27 Nov 2012 12:51:23 +0000 (14:51 +0200)]
media-api: Update documentation of MediaPlayer interface
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
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
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.
Lucas De Marchi [Thu, 29 Nov 2012 13:19:33 +0000 (11:19 -0200)]
core: Attach and detach object manager
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.
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.
João Paulo Rechi Vita [Thu, 29 Nov 2012 13:38:55 +0000 (10:38 -0300)]
control: Remove duplicated documentation entry
Luiz Augusto von Dentz [Thu, 29 Nov 2012 09:06:36 +0000 (11:06 +0200)]
media: Remove left over of HFP removal
Luiz Augusto von Dentz [Thu, 29 Nov 2012 09:06:35 +0000 (11:06 +0200)]
media-api: Update documentation of MediaTransport interface
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
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.
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.
Johan Hedberg [Wed, 28 Nov 2012 14:42:36 +0000 (16:42 +0200)]
input: _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
Johan Hedberg [Wed, 28 Nov 2012 14:36:08 +0000 (16:36 +0200)]
btsnoop: _GNU_SOURCE is needed for O_CLOEXEC on some systems
Johan Hedberg [Wed, 28 Nov 2012 14:30:23 +0000 (16:30 +0200)]
btsnoop: 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
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.
Marcel Holtmann [Tue, 27 Nov 2012 09:26:23 +0000 (10:26 +0100)]
emulator: Add handling for monitor server instance
Luiz Augusto von Dentz [Mon, 26 Nov 2012 15:31:52 +0000 (17:31 +0200)]
network: Only export UUID and Interface properties while connected
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
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.
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.
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.
Johan Hedberg [Mon, 26 Nov 2012 14:59:34 +0000 (16:59 +0200)]
test: Add RequestDisconnection support to test-hfp
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.
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.
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.
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.
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.
Luiz Augusto von Dentz [Mon, 26 Nov 2012 13:09:17 +0000 (15:09 +0200)]
network: Make use of D-Bus Properties 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.
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.
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.
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.
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.
Johan Hedberg [Mon, 26 Nov 2012 14:16:27 +0000 (16:16 +0200)]
device: Pass correct DBusMessage parameter to btd_error_failed
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.
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
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.
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.
Johan Hedberg [Mon, 26 Nov 2012 12:15:05 +0000 (14:15 +0200)]
core: Send a "cancelled" response to Device.Connect when disconnecting
Johan Hedberg [Mon, 26 Nov 2012 12:14:56 +0000 (14:14 +0200)]
core: Fix cleaning up pending connect list if a profile fails
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
Johan Hedberg [Mon, 26 Nov 2012 11:22:35 +0000 (13:22 +0200)]
core: Don't do reverse SDP when services are already resolved
Johan Hedberg [Mon, 26 Nov 2012 11:12:27 +0000 (13:12 +0200)]
core: Add auto_connect entries to profile defaults
Johan Hedberg [Mon, 26 Nov 2012 10:54:51 +0000 (12:54 +0200)]
audio: Fix missing AVCTP security level
Johan Hedberg [Mon, 26 Nov 2012 10:43:11 +0000 (12:43 +0200)]
device: Fix leaking browse request DBusMessage
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.
Johan Hedberg [Sat, 24 Nov 2012 10:39:53 +0000 (12:39 +0200)]
audio: Remove deprecated Connected/Disconnected signals
Johan Hedberg [Sat, 24 Nov 2012 10:36:57 +0000 (12:36 +0200)]
audio: Remove deprecated Control.IsConnected method
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.
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.
Johan Hedberg [Fri, 23 Nov 2012 12:34:18 +0000 (14:34 +0200)]
sdptool: Add missing UUID entries for MAP and HSP
Johan Hedberg [Fri, 23 Nov 2012 12:33:49 +0000 (14:33 +0200)]
lib: Add missing svclass entries for MAP
Johan Hedberg [Fri, 23 Nov 2012 11:51:47 +0000 (13:51 +0200)]
test: Add auto-trust and auto-connect to simple-agent
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.
Marcel Holtmann [Thu, 22 Nov 2012 09:43:42 +0000 (10:43 +0100)]
monitor: Decode LMP features pages
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.
Marcel Holtmann [Thu, 22 Nov 2012 06:54:54 +0000 (07:54 +0100)]
monitor: Add missing HCI testing commands
Marcel Holtmann [Wed, 21 Nov 2012 19:24:23 +0000 (20:24 +0100)]
monitor: Add HCI commands from CSA2 and CSA3
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
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.
Frédéric Danis [Wed, 21 Nov 2012 13:49:50 +0000 (14:49 +0100)]
adapter: Convert storage did file
Frédéric Danis [Wed, 21 Nov 2012 13:49:49 +0000 (14:49 +0100)]
device: Retrieve device blocked from storage
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.
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.
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
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.
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.
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.
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.
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.
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.
Johan Hedberg [Wed, 21 Nov 2012 12:33:33 +0000 (14:33 +0200)]
neard: Be more consistent in error handling and variable naming
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.
Luiz Augusto von Dentz [Tue, 20 Nov 2012 14:50:57 +0000 (16:50 +0200)]
audio: Remove another leftover of HFP code
Frédéric Danis [Thu, 15 Nov 2012 17:35:39 +0000 (18:35 +0100)]
doc: Add HFP design document
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.
Marcel Holtmann [Wed, 21 Nov 2012 05:26:45 +0000 (06:26 +0100)]
monitor: Handle attribute lists for SDP records
Marcel Holtmann [Wed, 21 Nov 2012 04:35:27 +0000 (05:35 +0100)]
monitor: Track SDP continuation for attribute lists
Marcel Holtmann [Tue, 20 Nov 2012 17:01:01 +0000 (18:01 +0100)]
monitor: Handle UUID-32 and UUID-128 values
Marcel Holtmann [Tue, 20 Nov 2012 15:10:44 +0000 (16:10 +0100)]
monitor: Decode SDP element data structures
Marcel Holtmann [Tue, 20 Nov 2012 10:56:05 +0000 (11:56 +0100)]
monitor: Add basic attribute UUID decoding
Marcel Holtmann [Tue, 20 Nov 2012 10:50:48 +0000 (11:50 +0100)]
build: Remove stupid -I directives
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.
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.