OSDN Git Service
Luiz Augusto von Dentz [Mon, 24 Nov 2008 19:27:51 +0000 (16:27 -0300)]
Add discovering option to test-adapter.
Luiz Augusto von Dentz [Mon, 24 Nov 2008 19:22:38 +0000 (16:22 -0300)]
Remove deprecated PeriodicDiscovery property from test-adapter.
Ville Tervo [Mon, 24 Nov 2008 06:19:36 +0000 (08:19 +0200)]
Change "device" in information print into "node"
Johan Hedberg [Sat, 22 Nov 2008 16:06:30 +0000 (18:06 +0200)]
Use correct property types for Device and UUID
Marcel Holtmann [Fri, 21 Nov 2008 14:49:28 +0000 (15:49 +0100)]
Release 4.19
Marcel Holtmann [Fri, 21 Nov 2008 14:48:26 +0000 (15:48 +0100)]
Update library version
Johan Hedberg [Fri, 21 Nov 2008 09:57:19 +0000 (11:57 +0200)]
Fix bdaddr parameter to adapter_pairing_initiator
Marcel Holtmann [Fri, 21 Nov 2008 10:37:12 +0000 (11:37 +0100)]
Add support for discoverable option
Marcel Holtmann [Fri, 21 Nov 2008 10:34:28 +0000 (11:34 +0100)]
Add support for pairable option
Luiz Augusto von Dentz [Thu, 20 Nov 2008 19:33:30 +0000 (16:33 -0300)]
Introduce Pairable property.
As the name suggest it tells when an adapter enter or leaves bondable
mode, it works as follow:
Pairable=true & Discoverable=true: limited IAC
Pairable=true & Discoverable=false: pairable but inquiry scan disabled
Pairable=false & Discoverable=true: inquiry scan enabled (with Generic IAC)
but new pairings cannot be created (same as if there was no agent)
Pairable=false & Discoverable=false: inquiry scan disabled & non-pairable
(as if there was no agent)
Johan Hedberg [Wed, 19 Nov 2008 13:51:44 +0000 (15:51 +0200)]
Fix +BSRF syntax
Johan Hedberg [Tue, 18 Nov 2008 22:47:27 +0000 (00:47 +0200)]
Remove unused functions
Johan Hedberg [Tue, 18 Nov 2008 22:35:11 +0000 (00:35 +0200)]
Move set_limited_discoverable() from dbus-hci.c to adapter.c
The function was only used from within adapter.c so it makes sense to have it
static inside adapter.c
Johan Hedberg [Tue, 18 Nov 2008 22:21:51 +0000 (00:21 +0200)]
Fix D-Bus signals emmission for CreateDevice
Johan Hedberg [Tue, 18 Nov 2008 20:57:39 +0000 (22:57 +0200)]
Once a driver has been removed break out and proceed to the next one
Johan Hedberg [Tue, 18 Nov 2008 20:20:40 +0000 (22:20 +0200)]
Fix parameters to debug()
Johan Hedberg [Tue, 18 Nov 2008 13:47:08 +0000 (15:47 +0200)]
Clarify the agent parameter usage with CreatePairedDevice
Luiz Augusto von Dentz [Mon, 17 Nov 2008 20:55:26 +0000 (17:55 -0300)]
Prevent duplicated uuids from being probed.
Since probe takes the device object and the uuid list it make no sense
to have duplicated uuid being probed, since the driver wouldn't detect any
difference between them (fetching from the cache would return the very
same record).
Luiz Augusto von Dentz [Fri, 14 Nov 2008 20:27:16 +0000 (17:27 -0300)]
Make use of g_timeout_add_seconds whenever possible.
Luiz Augusto von Dentz [Thu, 13 Nov 2008 17:52:02 +0000 (14:52 -0300)]
Make use of sdp_copy_record.
Luiz Augusto von Dentz [Mon, 17 Nov 2008 17:14:13 +0000 (14:14 -0300)]
Introduce sdp_copy_record.
To prevent use of sdp_gen_record_pdu + sdp_extract_pdu for copying
records.
Luiz Augusto von Dentz [Thu, 13 Nov 2008 17:38:59 +0000 (14:38 -0300)]
Fix possible invalid read.
The unitSize were being used as the string length when in fact it is
always one byte bigger than the length where the extra byte is allocated
for the dtd.
Marcel Holtmann [Thu, 13 Nov 2008 09:19:16 +0000 (10:19 +0100)]
Don't install manual pages for old daemons if not enabled
Johan Hedberg [Wed, 12 Nov 2008 12:55:40 +0000 (14:55 +0200)]
Merge branch 'for-upstream' of git://gitorious.org/bluez/vudentzs-clone into vudentz
Johan Hedberg [Wed, 12 Nov 2008 11:37:50 +0000 (13:37 +0200)]
Remove prototype for non-existent function
Johan Hedberg [Tue, 11 Nov 2008 15:33:40 +0000 (17:33 +0200)]
Remove duplicate (and incorrect) call to adapter_get_address
Luiz Augusto von Dentz [Tue, 11 Nov 2008 14:40:28 +0000 (11:40 -0300)]
Make bt_name2string to handle UUID128 and HEX string formats.
Luiz Augusto von Dentz [Mon, 10 Nov 2008 19:06:29 +0000 (16:06 -0300)]
Emit DeviceCreated for temporary devices.
DeviceCreated should be emitted for temporary devices since there could
be meaningful information for user applications. This also affects
DeviceRemoved since it now should be emitted for temporary devices too.
Luiz Augusto von Dentz [Mon, 10 Nov 2008 18:11:19 +0000 (15:11 -0300)]
Code cleanup.
Luiz Augusto von Dentz [Mon, 10 Nov 2008 18:04:41 +0000 (15:04 -0300)]
Fix bug which makes DeviceCreated to not being emitted.
DeviceCreated was not being emitted when the remote device initiate the
connection.
Marcel Holtmann [Sun, 9 Nov 2008 16:30:00 +0000 (17:30 +0100)]
Release 4.18
Johan Hedberg [Sat, 8 Nov 2008 20:41:41 +0000 (22:41 +0200)]
Remove debug prints that were added by mistake in the previous commit
Johan Hedberg [Sat, 8 Nov 2008 20:33:29 +0000 (22:33 +0200)]
Remove duplicate call to btd_device_get_record
Johan Hedberg [Sat, 8 Nov 2008 20:31:22 +0000 (22:31 +0200)]
Check for HSP_HS_UUID in the probe callback
This change is needed since with the recent UUID matching changes e.g.
the Headset AGW record would match HSP_HS_UUID since it contains it
within the record.
Johan Hedberg [Sat, 8 Nov 2008 19:07:59 +0000 (21:07 +0200)]
Simplify record uuid matching logic
Johan Hedberg [Sat, 8 Nov 2008 14:45:53 +0000 (16:45 +0200)]
Store RFCOMM tty fd and close it before release
Johan Hedberg [Sat, 8 Nov 2008 14:14:34 +0000 (16:14 +0200)]
Make device_match_patter() more readable by using more intuitive variable names
Johan Hedberg [Sat, 8 Nov 2008 13:57:00 +0000 (15:57 +0200)]
Fix memory leak
Johan Hedberg [Sat, 8 Nov 2008 13:53:12 +0000 (15:53 +0200)]
Fix coding style
Luiz Augusto von Dentz [Fri, 7 Nov 2008 21:58:45 +0000 (18:58 -0300)]
Fix Connected property on input interface always being inverted.
is_connected where being used as the compare function on
g_slist_find_custom which doesn't work as expected.
Luiz Augusto von Dentz [Fri, 7 Nov 2008 21:21:43 +0000 (18:21 -0300)]
Fix driver removal for serial port driver.
Because of the last changes serial port driver would not remove all ports
registered on probe just the one registered with serial port uuid if
registered.
Luiz Augusto von Dentz [Fri, 7 Nov 2008 18:29:56 +0000 (15:29 -0300)]
Make serial driver to register RFCOMM UUID.
This will make serial driver to get probed for any record which has
RFCOMM UUID.
Luiz Augusto von Dentz [Fri, 7 Nov 2008 18:22:35 +0000 (15:22 -0300)]
Add support for device pattern drivers.
The support is necessary for driver like serial which should be able to
register RFCOMM UUID but was unable to do so as we were only matching
the profile itself.
Johan Hedberg [Fri, 7 Nov 2008 12:24:01 +0000 (14:24 +0200)]
Use only L2CAP and PNP UUIDs for initial service discovery
Since public browsing is unreliable on so many devices and the fixed
list cannot cover all possible profiles (e.g. so far it didnt cover OBEX
based profiles) use the L2CAP and PNP UUIDs since in practice they have
shown to work with practicly all devices (older BlueZ versions is an
exception). If these two UUIDs don't return anything use the public
browse group as a last resort.
Luiz Augusto von Dentz [Thu, 6 Nov 2008 19:12:16 +0000 (16:12 -0300)]
Rename bt_string2class to bt_name2class and introduce bt_name2string.
Since bt_string2class didn't work for UUID128 in string format the name got
changed to be more suggestive. bt_name2string was introduced to prevent
potential use of bt_string2uuid followed with bt_uuid2string which turns
to do the same conversion twice.
Johan Hedberg [Thu, 6 Nov 2008 15:13:03 +0000 (17:13 +0200)]
Use bt_string2class instead of bt_string2uuid to avoid unecessary conversion
Johan Hedberg [Thu, 6 Nov 2008 14:13:20 +0000 (16:13 +0200)]
Add OBEX UUIDs to the serial service
Johan Hedberg [Thu, 6 Nov 2008 14:05:59 +0000 (16:05 +0200)]
Fix checks for port->id value
Johan Hedberg [Thu, 6 Nov 2008 13:55:04 +0000 (15:55 +0200)]
Get rid of the dialup-specific driver
We can simply use the serial-driver and add the dialup UUID to its list.
Johan Hedberg [Thu, 6 Nov 2008 13:45:16 +0000 (15:45 +0200)]
Get rid of the name attribute for ports
The name was used for matching against friendly-name strings but we can
just as well derive it from the port UUID.
Luiz Augusto von Dentz [Wed, 5 Nov 2008 14:56:02 +0000 (11:56 -0300)]
Handle RequestAuthorization on adapter ANY.
Luiz Augusto von Dentz [Tue, 4 Nov 2008 22:06:56 +0000 (19:06 -0300)]
Check ANY record list in case the record is not present on adapter record list.
Luiz Augusto von Dentz [Mon, 3 Nov 2008 18:13:04 +0000 (15:13 -0300)]
Fix bug on Connected property.
Marcel Holtmann [Sat, 1 Nov 2008 04:47:03 +0000 (05:47 +0100)]
Mention Christian's contributions
Marcel Holtmann [Sat, 1 Nov 2008 00:42:36 +0000 (01:42 +0100)]
Fix handling of service records on any adapter object
Marcel Holtmann [Sat, 1 Nov 2008 00:25:46 +0000 (01:25 +0100)]
Add new service test script and fix adapter script
Marcel Holtmann [Sat, 1 Nov 2008 00:17:12 +0000 (01:17 +0100)]
Make FindAdapter return the any object if present
Marcel Holtmann [Fri, 31 Oct 2008 23:55:46 +0000 (00:55 +0100)]
Add support for service interface on any adapter object
Marcel Holtmann [Fri, 31 Oct 2008 23:54:45 +0000 (00:54 +0100)]
Add method for requesting/releasing the any adapter object path
Marcel Holtmann [Fri, 31 Oct 2008 23:14:46 +0000 (00:14 +0100)]
Add more options to SBC encoder and decoder
Marcel Holtmann [Fri, 31 Oct 2008 22:55:13 +0000 (23:55 +0100)]
Fix SBC gain mismatch
Marcel Holtmann [Fri, 31 Oct 2008 22:09:05 +0000 (23:09 +0100)]
Mix the PID into the base path
Marcel Holtmann [Fri, 31 Oct 2008 22:05:49 +0000 (23:05 +0100)]
Move storage of the base path to manager
Marcel Holtmann [Fri, 31 Oct 2008 22:00:07 +0000 (23:00 +0100)]
Make the variable prefix really global
Marcel Holtmann [Fri, 31 Oct 2008 21:49:33 +0000 (22:49 +0100)]
Use correct object path for manager interface
Marcel Holtmann [Thu, 30 Oct 2008 19:01:06 +0000 (20:01 +0100)]
Fix SBC decoding handling
Johan Hedberg [Wed, 29 Oct 2008 21:27:34 +0000 (23:27 +0200)]
Use i instead of j in for-loop
Johan Hedberg [Wed, 29 Oct 2008 21:18:06 +0000 (23:18 +0200)]
Fix duplicate UUID detection
The original code didn't work because the continue statement in the
innermost for-loop was supposed to act on the outer for-loop (which it
obviously doesn't do).
Johan Hedberg [Wed, 29 Oct 2008 19:10:48 +0000 (21:10 +0200)]
Convert Bluetooth UUID-128 to 32 or 16 bit if possible before searching
When doing SDP queries try to convert Bluetooth UUID-128 to 32 or 16 bit
form.
Johan Hedberg [Tue, 28 Oct 2008 21:31:13 +0000 (23:31 +0200)]
Simplify emit_device_found calls
String types which are NULL will just be ignored so we don't need the
extra check for name != NULL.
Johan Hedberg [Tue, 28 Oct 2008 21:17:56 +0000 (23:17 +0200)]
Send DeviceFound signals also the first time the name gets resolved
This patch makes sure that we send the DeviceFound with the Name
property for newly found pre-2.1 devices when their names gets resolved
for the first time.
Johan Hedberg [Tue, 28 Oct 2008 10:28:23 +0000 (12:28 +0200)]
Reuse sdp_session_t during the service discovery process
Keep unused SDP sessions alive for 2 seconds so that we don't have to do a new
sdp_connect for every step in the service discovery process.
Marcel Holtmann [Sun, 26 Oct 2008 09:26:27 +0000 (10:26 +0100)]
Release 4.17
Marcel Holtmann [Sun, 26 Oct 2008 00:04:44 +0000 (02:04 +0200)]
Let the decoder write Sun/NeXT audio S16_BE files
Marcel Holtmann [Sat, 25 Oct 2008 23:32:52 +0000 (01:32 +0200)]
Add bitpool option to encoder
Marcel Holtmann [Sat, 25 Oct 2008 22:26:20 +0000 (00:26 +0200)]
Fix missing encoding of last frame
Johan Hedberg [Sat, 25 Oct 2008 20:19:58 +0000 (23:19 +0300)]
Set stream timer in avdtp_sep_set_state instead of avdtp_suspend_resp
This ensures that the timer is not only set when we requested the
suspend but also when the other side requested the suspend.
Johan Hedberg [Fri, 24 Oct 2008 19:16:32 +0000 (22:16 +0300)]
Fix whitespace in function pointer declaration
Johan Hedberg [Fri, 24 Oct 2008 15:01:59 +0000 (18:01 +0300)]
Clear pending ring if calling is stopped before SCO is up
Johan Hedberg [Fri, 24 Oct 2008 12:49:52 +0000 (15:49 +0300)]
Use g_dbus_send_message instead of dbus_connection_send
Johan Hedberg [Fri, 24 Oct 2008 12:39:59 +0000 (15:39 +0300)]
Make Headset.Play() succeed if there's a pending HFP triggered SCO
Johan Hedberg [Fri, 24 Oct 2008 12:20:36 +0000 (15:20 +0300)]
Fix manager_allow_headset_connection count check
Johan Hedberg [Fri, 24 Oct 2008 12:11:31 +0000 (15:11 +0300)]
Don't set the ring timer twice
Johan Hedberg [Fri, 24 Oct 2008 12:09:50 +0000 (15:09 +0300)]
No need to remove the ring timer twice in the terminate call case
Johan Hedberg [Fri, 24 Oct 2008 11:59:32 +0000 (14:59 +0300)]
Also remove ring timer if the HF rejects the call
Johan Hedberg [Fri, 24 Oct 2008 11:54:14 +0000 (14:54 +0300)]
Remove the ring timer imediately when ATA is received
Johan Hedberg [Fri, 24 Oct 2008 11:28:51 +0000 (14:28 +0300)]
Ensure that SCO is up before sending RINGs for inband ringtone
Johan Hedberg [Fri, 24 Oct 2008 10:49:12 +0000 (13:49 +0300)]
Remove bogus function
Johan Hedberg [Fri, 24 Oct 2008 10:44:16 +0000 (13:44 +0300)]
Use g_clear_error(&err) instead of g_error_free(err); err = NULL
Johan Hedberg [Fri, 24 Oct 2008 09:19:47 +0000 (12:19 +0300)]
Limit the amount of connected HSP/HFP devices and make it configurable
It's very tricky to get the multiple connected HSP/HFP devices use case right.
E.g. in the case of in-band ringtone the specification mandates us to open SCO
to the HFP before sending RING indications. So, in the case of multiple
connected devices we would have to open multimple simultaneous SCO connections
which simply isn't a wise thing to do.
Marcel Holtmann [Thu, 23 Oct 2008 21:00:45 +0000 (23:00 +0200)]
Add documentation for Icon property
Marcel Holtmann [Thu, 23 Oct 2008 04:40:29 +0000 (06:40 +0200)]
Add support for Dell Wireless 365
Marcel Holtmann [Thu, 23 Oct 2008 04:38:54 +0000 (06:38 +0200)]
Add more product IDs for Logitech MX5500
Johan Hedberg [Wed, 22 Oct 2008 12:28:31 +0000 (15:28 +0300)]
Return proper error replies in telephony-dummy
Without this fix sending invalid arguments to telephony-dummy causes libgdbus
to return NO_MEMORY to libdbus which in turn causes the method handler to be
called in an infinite loop.
Marcel Holtmann [Tue, 21 Oct 2008 16:55:20 +0000 (18:55 +0200)]
Release 4.16
Johan Hedberg [Tue, 21 Oct 2008 15:20:20 +0000 (18:20 +0300)]
Fix GDBusWatchFunction usage
Marcel Holtmann [Tue, 21 Oct 2008 00:24:11 +0000 (02:24 +0200)]
Add PBAP UUID for simpler access
Johan Hedberg [Mon, 20 Oct 2008 11:36:21 +0000 (14:36 +0300)]
Remember to remove the name listener in path_unregister
Johan Hedberg [Mon, 20 Oct 2008 11:32:04 +0000 (14:32 +0300)]
Unload adapter drivers on adapter removal instead of adapter_stop
Johan Hedberg [Mon, 20 Oct 2008 11:18:33 +0000 (14:18 +0300)]
Call exit_callback with correct parameters upon path removal