Luiz Augusto von Dentz
e464fdc01d
Introduce sdp_copy_record.
...
To prevent use of sdp_gen_record_pdu + sdp_extract_pdu for copying
records.
2008-11-17 14:14:13 -03:00
Luiz Augusto von Dentz
8ab9a6d32c
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.
2008-11-13 14:53:16 -03:00
Marcel Holtmann
de8c5c3404
Don't install manual pages for old daemons if not enabled
2008-11-13 10:19:16 +01:00
Johan Hedberg
8dabad80ca
Merge branch 'for-upstream' of git://gitorious.org/bluez/vudentzs-clone into vudentz
2008-11-12 14:55:40 +02:00
Johan Hedberg
817a88bd91
Remove prototype for non-existent function
2008-11-12 13:37:50 +02:00
Johan Hedberg
5dfd446637
Remove duplicate (and incorrect) call to adapter_get_address
2008-11-11 17:33:40 +02:00
Luiz Augusto von Dentz
75cf777023
Make bt_name2string to handle UUID128 and HEX string formats.
2008-11-11 11:40:28 -03:00
Luiz Augusto von Dentz
eeea876d77
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.
2008-11-11 09:59:55 -03:00
Luiz Augusto von Dentz
5c6426eff8
Code cleanup.
2008-11-10 21:40:02 +02:00
Luiz Augusto von Dentz
438ab01b43
Fix bug which makes DeviceCreated to not being emitted.
...
DeviceCreated was not being emitted when the remote device initiate the
connection.
2008-11-10 21:39:44 +02:00
Marcel Holtmann
ccc66bbab0
Release 4.18
2008-11-09 17:30:00 +01:00
Johan Hedberg
a01801fd21
Remove debug prints that were added by mistake in the previous commit
2008-11-08 22:41:41 +02:00
Johan Hedberg
8c9833157e
Remove duplicate call to btd_device_get_record
2008-11-08 22:33:29 +02:00
Johan Hedberg
0c9566f2c0
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.
2008-11-08 22:31:22 +02:00
Johan Hedberg
3870d6ab80
Simplify record uuid matching logic
2008-11-08 21:07:59 +02:00
Johan Hedberg
f780466ede
Store RFCOMM tty fd and close it before release
2008-11-08 16:45:53 +02:00
Johan Hedberg
878dee664d
Make device_match_patter() more readable by using more intuitive variable names
2008-11-08 16:14:34 +02:00
Johan Hedberg
cdfe8a8246
Fix memory leak
2008-11-08 15:57:00 +02:00
Johan Hedberg
3bb7c1527c
Fix coding style
2008-11-08 15:53:12 +02:00
Luiz Augusto von Dentz
a218e9ef19
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.
2008-11-07 18:58:45 -03:00
Luiz Augusto von Dentz
f449b80bff
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.
2008-11-07 18:21:43 -03:00
Luiz Augusto von Dentz
4ea2af53fa
Make serial driver to register RFCOMM UUID.
...
This will make serial driver to get probed for any record which has
RFCOMM UUID.
2008-11-07 15:29:56 -03:00
Luiz Augusto von Dentz
f1c3d8c1fa
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.
2008-11-07 15:22:35 -03:00
Johan Hedberg
0dabe8201e
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.
2008-11-07 14:24:01 +02:00
Luiz Augusto von Dentz
054f044588
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.
2008-11-06 16:12:16 -03:00
Johan Hedberg
0cd6d963d0
Use bt_string2class instead of bt_string2uuid to avoid unecessary conversion
2008-11-06 17:13:03 +02:00
Johan Hedberg
7fc0e09665
Add OBEX UUIDs to the serial service
2008-11-06 16:13:20 +02:00
Johan Hedberg
b877233d59
Fix checks for port->id value
2008-11-06 16:05:59 +02:00
Johan Hedberg
ba62d90d66
Get rid of the dialup-specific driver
...
We can simply use the serial-driver and add the dialup UUID to its list.
2008-11-06 15:55:04 +02:00
Johan Hedberg
23640c409f
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.
2008-11-06 15:45:16 +02:00
Luiz Augusto von Dentz
37f2c16350
Handle RequestAuthorization on adapter ANY.
2008-11-05 11:56:02 -03:00
Luiz Augusto von Dentz
a6e8281102
Check ANY record list in case the record is not present on adapter record list.
2008-11-04 19:06:56 -03:00
Luiz Augusto von Dentz
39529ba3d7
Fix bug on Connected property.
2008-11-03 15:13:04 -03:00
Marcel Holtmann
b4587ae26b
Mention Christian's contributions
2008-11-01 05:47:03 +01:00
Marcel Holtmann
d6334b6272
Fix handling of service records on any adapter object
2008-11-01 01:42:36 +01:00
Marcel Holtmann
330092231a
Add new service test script and fix adapter script
2008-11-01 01:25:46 +01:00
Marcel Holtmann
063167c27c
Make FindAdapter return the any object if present
2008-11-01 01:17:12 +01:00
Marcel Holtmann
81a1e13f79
Add support for service interface on any adapter object
2008-11-01 00:55:46 +01:00
Marcel Holtmann
1700790d94
Add method for requesting/releasing the any adapter object path
2008-11-01 00:54:45 +01:00
Marcel Holtmann
c4918c93aa
Add more options to SBC encoder and decoder
2008-11-01 00:14:46 +01:00
Marcel Holtmann
40e63b5f54
Fix SBC gain mismatch
2008-10-31 23:55:13 +01:00
Marcel Holtmann
397ce1cede
Mix the PID into the base path
2008-10-31 23:09:05 +01:00
Marcel Holtmann
795dd43cce
Move storage of the base path to manager
2008-10-31 23:05:49 +01:00
Marcel Holtmann
139c2014be
Make the variable prefix really global
2008-10-31 23:00:07 +01:00
Marcel Holtmann
56726c8298
Use correct object path for manager interface
2008-10-31 22:49:33 +01:00
Marcel Holtmann
83046ec71a
Fix SBC decoding handling
2008-10-30 20:01:06 +01:00
Johan Hedberg
775f13d1b9
Use i instead of j in for-loop
2008-10-29 23:27:34 +02:00
Johan Hedberg
1e32e38099
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).
2008-10-29 23:18:06 +02:00
Johan Hedberg
4b1914903c
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.
2008-10-29 21:10:48 +02:00
Johan Hedberg
e0baf6af60
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.
2008-10-28 23:31:13 +02:00