Commit Graph

74 Commits

Author SHA1 Message Date
Marcel Holtmann 26210912d9 plugins: Mode fixups for copyrigh headers 2010-10-01 06:51:34 +02:00
Marcel Holtmann be1912fe9c Make debug handling with OFONO_AT_DEBUG a bit more consistent 2010-09-24 14:14:04 +09:00
João Paulo Rechi Vita 8ca72b9706 hfp: fix typo 2010-08-23 20:15:28 +02:00
Gustavo F. Padovan c441ca167d bluetooth: define DBUS_TIMEOUT macro 2010-08-05 10:34:38 -05:00
Denis Kenzior 2f967651fb hfp: Fix style issues 2010-06-21 22:53:05 -05:00
Gustavo F. Padovan f4e1b5ca91 hfp: use bluetooth helpers and remove similar code 2010-06-21 22:49:37 -05:00
Denis Kenzior 02a54376c9 hfp: Use bluetooth_parse_properties
Instead of the local version
2010-06-17 05:32:29 -05:00
Denis Kenzior cfc9722b13 hfp: Use the bluetooth_send_with_reply
Instead of send_method_call_with_reply
2010-06-17 05:32:29 -05:00
Gustavo F. Padovan b611316bbe Remove send_method_call from hfp.c 2010-06-17 05:32:12 -05:00
Gustavo F. Padovan 9d543c0719 Move create_path() to bluetooth plugin 2010-06-17 05:07:05 -05:00
Gustavo F. Padovan 4004433ad4 Add bluetooth plugin skeleton.
The bluetooth plugin has bluetooth_resgister_uuid() and
bluetooth_unresgister_uuid() where bluetooth profiles plugins such as HFP
and DUN can register themselves to get know about BlueZ stuff ( new
devices, bluetoothd shutdown, etc..)
2010-06-17 05:06:39 -05:00
Gustavo F. Padovan 400d692e6e hfp: add watch to trigger HUP of the file descriptor 2010-02-15 16:46:17 -06:00
Gustavo F. Padovan f738a84588 hfp: remove modems if bluetoothd exits unexpectedly 2010-02-15 15:03:31 -06:00
Gustavo F. Padovan e66002bbcf hfp: remove duplicated ofono_modem_set_powered 2010-02-15 13:37:34 -06:00
Denis Kenzior 766a0bcfa5 Fix: Unregistering the agent in disable is wrong
What we really want to do here is set a flag that the agent has not been
released yet.  If this is the case we should send the Disconnect call on
disable.
2010-02-12 20:10:29 -06:00
Denis Kenzior 7194bd03a0 Add hfp/ prefix to the path for HFP modems 2010-02-12 19:49:19 -06:00
Denis Kenzior 5d104529f9 Add support for alias changes 2010-02-12 18:42:48 -06:00
Denis Kenzior 8210719201 Set modem name from Bluetooth device alias 2010-02-12 18:30:03 -06:00
Denis Kenzior 546a9fdd14 Fix: Use persistent paths for hfp modems 2010-02-12 18:19:32 -06:00
Denis Kenzior e3016c3bc5 Fix: Store the modem in the uuid hash
The modem is more useful to store than the path, particularly once we
track Aliases
2010-02-12 17:57:20 -06:00
Denis Kenzior 6ec67d79ed Refactor the UUIDs property changed path 2010-02-12 17:52:55 -06:00
Denis Kenzior 9f74296c2b Don't leak user_data in send_method_call_with_reply 2010-02-12 17:51:23 -06:00
Gustavo F. Padovan 4c0790da4f hfp: Don't use Disconnect when agent was released 2010-02-12 17:35:11 -06:00
Denis Kenzior a040ca718b Keep track of adapter addresses
This will be required for peristent HFP modem path tracking.
2010-02-12 16:33:53 -06:00
Denis Kenzior a8cd42c4d5 Fix: Add free_func to send_method_call_with_reply 2010-02-12 16:30:34 -06:00
Denis Kenzior 2b9c5ee411 Fix: ofono_dbus_get_connection does not ref it 2010-02-12 16:07:13 -06:00
Denis Kenzior 103a5fdfcb Cleanup: No sense in creating the hash if failed 2010-02-12 16:05:09 -06:00
Denis Kenzior ed455645f9 Refactor: Device GetProperties handling 2010-02-12 15:44:31 -06:00
Denis Kenzior d9382dc4b2 Refactor: Use Adapter Devices property
Adapter interface ListDevices method is deprecated
2010-02-12 15:32:53 -06:00
Denis Kenzior 41a1dacae9 Fix: Use Manager's Adapters property instead
ListAdapters method on Manager interface is deprecated
2010-02-12 15:05:52 -06:00
Denis Kenzior 7a48b56ebb Add a more sophisticated GetProperties reply parser 2010-02-12 15:05:27 -06:00
Denis Kenzior d5577a393d Style: No need for this to be a function 2010-02-12 12:02:39 -06:00
Denis Kenzior 35f83a7129 Fix: Use a 15 second timeout on a disconnect 2010-02-12 12:01:07 -06:00
Denis Kenzior 668dc8e42b Style: No need for this to be a function 2010-02-12 12:01:04 -06:00
Denis Kenzior 1155a0c1a7 Style: No need for a function here 2010-02-12 11:27:02 -06:00
Gustavo F. Padovan 0d86193b34 hfp: set timeout to rfcomm establishment procedure
If it expires we call org.bluez.HandsfreeGateway.Disconnect()
It also modifies send_method_call and break it down into two functions.
Now we have send_method_call_with_reply, for DBus messages that needs a
reply. It sets a reply and a timeout for the message reply.
The other funcion is called send_method_call without timeout or reply
parameters.
2010-02-12 10:03:31 -06:00
Gustavo F. Padovan 46836533e0 hfp: avoid crash when hfp is declared on modem.conf 2010-02-11 17:03:31 -06:00
Gustavo F. Padovan 8f95e03d75 hfp: fix copyright notice 2010-02-11 17:03:17 -06:00
Denis Kenzior 7f9a9b0cdc Fix: Don't use ofono_debug directly in plugins 2010-02-08 12:09:01 -06:00
Denis Kenzior c02dc9c68b Fix: Simplify overly complex error handling 2010-02-05 17:31:13 -06:00
Denis Kenzior 5237a12ca2 Style: Rename variables to better indicate arrays
Variables that hold arrays of strings should be named more appropriately
to help indicate this.
2010-02-05 17:25:53 -06:00
Denis Kenzior 8dc538e252 Style: No need for void here 2010-02-05 17:24:18 -06:00
Vinicius Costa Gomes e20587631d hfp: Fix memory leak when listing bluetooth devices 2010-02-05 17:15:16 -06:00
Gustavo F. Padovan 805a6c47d3 hfp: wait Disconnect reply to power down the modem 2010-02-05 13:35:43 -06:00
Gustavo F. Padovan edb98c16e8 Fix: Don't call UnregisterAgent if already Released
Prevent to call UnregisterAgent on an already unregistered agent.
2010-02-05 13:34:33 -06:00
Gustavo F. Padovan 4522c9686d hfp: create modem for new devices paired on runtime
It listens the UUIDs property to create a modem from the recently paired
devices. It also renames added_watch to adapter_watch, a more proper
name.
2010-02-05 13:33:13 -06:00
Denis Kenzior d223243913 Fix: Use snprintf instead of sprintf in HFP 2010-02-05 12:00:14 -06:00
Denis Kenzior 7bab47f07b Fix: No need to check for handsfree_path now 2010-02-04 13:49:36 -06:00
Denis Kenzior 5a6bbd113d Cleanup: Refactor handling of failed connections 2010-02-04 13:49:36 -06:00
Denis Kenzior 4822b21b4d Cleanup: Modem creation 2010-02-04 13:49:33 -06:00