summaryrefslogtreecommitdiffstats
path: root/src/device.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix coding styleJohan Hedberg2008-11-081-5/+3
|
* Add support for device pattern drivers.Luiz Augusto von Dentz2008-11-071-27/+95
| | | | | | 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.
* Use only L2CAP and PNP UUIDs for initial service discoveryJohan Hedberg2008-11-071-107/+30
| | | | | | | | | 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.
* Make the variable prefix really globalMarcel Holtmann2008-10-311-3/+2
|
* Use i instead of j in for-loopJohan Hedberg2008-10-291-3/+3
|
* Fix duplicate UUID detectionJohan Hedberg2008-10-291-14/+24
| | | | | | 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).
* Convert Bluetooth UUID-128 to 32 or 16 bit if possible before searchingJohan Hedberg2008-10-291-0/+3
| | | | | When doing SDP queries try to convert Bluetooth UUID-128 to 32 or 16 bit form.
* Use g_dbus_send_message instead of dbus_connection_sendJohan Hedberg2008-10-241-4/+2
|
* Fix fallouts due to GDBusWatchFunction changesMarcel Holtmann2008-10-171-1/+1
|
* Add emit_array_property_changed()Johan Hedberg2008-10-161-2/+2
|
* Rename dbus_connection_emit_property_changed to emit_property_changedJohan Hedberg2008-10-161-16/+12
|
* Add dict_append_array()Johan Hedberg2008-10-161-1/+1
|
* Rename dbus_message_iter_append_dict_entry to dict_append_entryJohan Hedberg2008-10-161-19/+10
|
* Better debug when failing to probe a deviceBastien Nocera2008-10-151-2/+2
| | | | The previous error message was a bit terse.
* Fix uuid list allocation and freeing bug exposed by previous mem leak fixJohan Hedberg2008-10-101-6/+4
|
* Fix memory leakJohan Hedberg2008-10-101-0/+1
|
* Add mechanism for adding new UUIDs from the driver sideJohan Hedberg2008-10-091-5/+28
| | | | | | With this patch drivers can notify the core daemon that a device supports some UUID. This is useful in case we don't have a service record for a profile which the remote device initiates a connection for.
* Make device driver probe calls take UUID's instead of full recordsJohan Hedberg2008-10-091-18/+60
| | | | | This is preparation for allowing the device object to be correctly set up even when we don't have the full service records but only the remote UUID's.
* Don't remove service discovery timer even if device disconnectsJohan Hedberg2008-10-091-5/+0
| | | | | | | | | | Since it's important for us to find out what profiles a device has in order to populate the device object with the correct D-Bus interfaces insist on doing SDP even if got disconnected from the device. Since the timer is only 2 seconds the chances are that device will still be around and the connection will be successfull. This situation can happen if the remote device acts as an initiator for dedicated bonding and brings down the ACL before our timer goes off.
* Don't detect profile removal on during reverse service discoveryJohan Hedberg2008-10-091-7/+14
| | | | | | | Some devices will hide their service secords when they are connected so we incorrectly think that they have removed support for the profile. A simple solution is not to try to do this detection when we are doing reverse service discovery.
* Fix the service discovery-upon-pairing logicJohan Hedberg2008-10-081-9/+17
| | | | | | | | | The original code seems to try to handle the situation of two opposite directed pairing attempts (remote side starts dedicated bonding with us but someone calls CreatePairedDevice on our side at the same time). I'm not sure how likely this actually is or if it can even succeed, but the existing logic in the code was nevertheless wrong. After this patch is at least in theory makes sense to me (and is better commented if I forget what I was thinking when I wrote it).
* Fix possible memleak which could happen if bt_search_service fails.Luiz Augusto von Dentz2008-10-081-21/+32
|
* Fix removing of entries from a GSListJohan Hedberg2008-10-071-2/+4
|
* Remove device discovery timer on device removal.Luiz Augusto von Dentz2008-09-301-0/+3
|
* Make sure to always add Alias and Icon propertyMarcel Holtmann2008-09-291-62/+9
|
* Fix duplicate entries for service UUIDsMarcel Holtmann2008-09-291-8/+17
|
* Use global DBusConnection instead of request specific oneJohan Hedberg2008-09-281-1/+2
| | | | | | The browse request will not have a DBusConnection associated with it when the browsing was started due to a remotely initated pairing attempt so it's safer to use a global DBusConnection pointer instead.
* Don't do bonding_process_complete upon link_key_notifyJohan Hedberg2008-09-261-2/+32
|
* Only create D-Bus client listener if there is a clientJohan Hedberg2008-09-251-4/+7
|
* Move more pairing and discovery initiation logic into device.cJohan Hedberg2008-09-251-4/+21
|
* Fix another memory leakJohan Hedberg2008-09-251-1/+4
|
* Fix memory leakJohan Hedberg2008-09-251-1/+3
|
* Do service discovery also for pairings initiated from the other sideJohan Hedberg2008-09-251-0/+37
|
* Clean up authentication and service discovery initiation codeJohan Hedberg2008-09-251-12/+20
|
* device_browse should fail if there's a SDP discovery already activeJohan Hedberg2008-09-241-0/+4
|
* Add support for Icon propertyMarcel Holtmann2008-09-231-8/+72
|
* Update devices list property when a new device is created/removed.Luiz Augusto von Dentz2008-09-221-0/+3
|
* rename get_record() to find_record_in_list() and move to storage.[ch]David Woodhouse2008-09-141-30/+2
|
* Store source information from DID recordMarcel Holtmann2008-09-141-5/+8
|
* store pnp info when we receive a pnp recordDavid Woodhouse2008-09-131-0/+18
|
* fix init_browse()David Woodhouse2008-09-121-2/+17
| | | | | | Change return to continue, so it doesn't just abort completely when it finds one driver asking for a UUID that another driver already wanted, and to eliminate duplicates of the UUIDs in uuid_list[] too...
* fix service browsingDavid Woodhouse2008-09-121-6/+7
| | | | | | | | | | We were incrementing req->search_uuid every time we call back into browse_cb() -- even when we'd already finished going through the uuid_list[] and were supposed to be handling req->uuids. So for each entry in req->uuids, we'd skip a zero after uuid_list[] and go trawling through random memory, treating it as more UUIDs to search for.
* Storing device address as bdaddr_t instead of string.Alok Barsode2008-09-121-70/+66
|
* Fix memory allocation of drivers uuid list to be dinamic as drivers may be ↵Luiz Augusto von Dentz2008-09-111-7/+17
| | | | unregistered.
* Fix memleakLuiz Augusto von Dentz2008-09-111-1/+1
|
* Fix problem that occurs when a device is removed but agent requests are not ↵Luiz Augusto von Dentz2008-09-111-0/+5
| | | | cancelled.
* Search for l2cap uuid if no record is found.Luiz Augusto von Dentz2008-09-111-0/+7
|
* Make discovery service routine to search for driver uuids.Luiz Augusto von Dentz2008-09-111-0/+30
|
* Split code of simple search and browse.Luiz Augusto von Dentz2008-09-111-26/+43
|
* Add missing uuids to search if the device doesn't support public browsing.Luiz Augusto von Dentz2008-09-111-0/+5
|