summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
Commit message (Collapse)AuthorAgeFilesLines
* Use more cleaner way of setting first_initMarcel Holtmann2008-11-301-4/+4
|
* Use the correct first_init variableJohan Hedberg2008-11-301-2/+2
| | | | Use the stored first_init since adapter->first_init will always be FALSE here.
* Only retrieve the active connections list on first initializationJohan Hedberg2008-11-301-14/+15
|
* Only load drivers on the very first initialization of the adapterJohan Hedberg2008-11-301-2/+4
|
* Fix handling of errno and return valueMarcel Holtmann2008-11-301-42/+40
|
* Fix uninitialized variableJohan Hedberg2008-11-301-0/+1
|
* Only keep a message reference for unreplied messagesJohan Hedberg2008-11-301-16/+24
| | | | | | To avoid confusion and doing a dbus_message_new_method_return more than once it's better to just store the dbus client bus name instead of the whole message after the reply to it has been sent.
* Limit setting pairable property to when the adapter is upJohan Hedberg2008-11-301-0/+3
|
* Fix sending the Pairable propertyJohan Hedberg2008-11-301-6/+18
|
* Fix Powered property change sending for different offmodesJohan Hedberg2008-11-301-4/+6
|
* Send WRITE_SCAN_ENABLE asynchronously from set_mode()Johan Hedberg2008-11-301-42/+2
|
* Move more signal sending and iac setting responsibility over to ↵Johan Hedberg2008-11-291-18/+23
| | | | adapter_mode_changed
* Further set_mode cleanupJohan Hedberg2008-11-291-6/+2
| | | | | | Use the dedicated adapter_remove_discov_timeout function and don't care about sessions when setting the discoverable timer since sessions can't own the discoverable mode anymore.
* Reset correct timeout id variableJohan Hedberg2008-11-291-1/+1
|
* Fix discov_timeout_handler to do WRITE_SCAN_ENABLE asynchronouslyJohan Hedberg2008-11-291-16/+11
|
* Use the write_scan_enable helper function from discov_timeout_handlerJohan Hedberg2008-11-291-52/+34
|
* Fix adapter_up behavior for offmode=devdown caseJohan Hedberg2008-11-291-20/+15
|
* Minor coding style fixJohan Hedberg2008-11-291-1/+1
|
* Make adapter_update_devices private to adapter.cJohan Hedberg2008-11-291-19/+19
|
* Make adapter_remove_discov_timeout private to adapter.cJohan Hedberg2008-11-291-13/+14
|
* Clean up scan mode related codeJohan Hedberg2008-11-291-30/+6
|
* Further cleanup of set_mode()Johan Hedberg2008-11-291-24/+36
| | | | | | The set_mode() function is excessively large so try to split out smaller logical parts of it into their own functions (write_scan_enable in this case).
* Remove unnecessary adapter_set_mode functionJohan Hedberg2008-11-291-11/+3
|
* Fix/cleanup set_mode() and its usageJohan Hedberg2008-11-291-65/+91
|
* Remove unnecessary parenthesisJohan Hedberg2008-11-291-1/+1
|
* Remove usage of the string "limited"Johan Hedberg2008-11-291-2/+1
|
* Remove bogus parameterJohan Hedberg2008-11-291-1/+1
|
* Remove unused variableJohan Hedberg2008-11-291-3/+0
|
* RequestMode end result should depend on the Discoverable propertyJohan Hedberg2008-11-291-4/+7
|
* Mode restoring for offmode=devdown should be per-adapterJohan Hedberg2008-11-291-6/+10
|
* adapter_up() cleanupJohan Hedberg2008-11-291-41/+37
|
* More session related cleanupJohan Hedberg2008-11-291-15/+14
|
* Rename old mode_request() to request_session()Johan Hedberg2008-11-291-19/+5
|
* Remove methods and properties marked as deprecated from Adapter interface.Luiz Augusto von Dentz2008-11-281-75/+0
|
* Introduce PairableTimeout Property and fix use of g_timeout_add.Luiz Augusto von Dentz2008-11-271-73/+156
| | | | | | | PairableTimeout work similarly to DiscoverableTimeout where the user application can set the amount of time to stay in Pairable. It also fixes the use of g_timeout_add to g_timeout_add_seconds for both PairableTimeout and DiscoverableTimeout.
* Introduce Pairable property.Luiz Augusto von Dentz2008-11-201-2/+66
| | | | | | | | | | | 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)
* Move set_limited_discoverable() from dbus-hci.c to adapter.cJohan Hedberg2008-11-191-0/+38
| | | | | The function was only used from within adapter.c so it makes sense to have it static inside adapter.c
* Fix D-Bus signals emmission for CreateDeviceJohan Hedberg2008-11-191-3/+1
|
* Make use of g_timeout_add_seconds whenever possible.Luiz Augusto von Dentz2008-11-171-1/+1
|
* Emit DeviceCreated for temporary devices.Luiz Augusto von Dentz2008-11-111-8/+15
| | | | | | 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.
* Handle RequestAuthorization on adapter ANY.Luiz Augusto von Dentz2008-11-051-10/+36
|
* Fix bug on Connected property.Luiz Augusto von Dentz2008-11-031-1/+1
|
* Make FindAdapter return the any object if presentMarcel Holtmann2008-11-011-0/+5
|
* Add method for requesting/releasing the any adapter object pathMarcel Holtmann2008-11-011-0/+25
|
* Move storage of the base path to managerMarcel Holtmann2008-10-311-2/+1
|
* Make the variable prefix really globalMarcel Holtmann2008-10-311-1/+3
|
* Send DeviceFound signals also the first time the name gets resolvedJohan Hedberg2008-10-281-5/+24
| | | | | | 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.
* Use g_dbus_send_message instead of dbus_connection_sendJohan Hedberg2008-10-241-8/+4
|
* Fix GDBusWatchFunction usageJohan Hedberg2008-10-211-2/+9
|
* Unload adapter drivers on adapter removal instead of adapter_stopJohan Hedberg2008-10-201-2/+2
|