summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-02-20bluez5: Add profile version argumentClaudio Takahasi2-2/+5
This patch adds sending of the Version argument to RegisterProfile method. The version is required to create the service record containing the correct profile version.
2013-02-20hfp_hf_bluez5: Add local HFP version trackingClaudio Takahasi1-1/+4
Fallback to HFP 1.5 if defer setup is not supported since it is not possible to proceed with codec negotiation.
2013-02-20handsfree-audio: Don't go over 80 charactersDenis Kenzior1-2/+2
2013-02-20handsfree-audio: Add Agent trackingClaudio Takahasi1-0/+14
This patch tracks when the Handsfree Audio Agent leaves the system BUS, and free agent allocated resources.
2013-02-20handsfree-audio: Call Agent "Release" when exitingClaudio Takahasi1-1/+14
This patch notifies the Agent implementation that it is no longer registered to the service daemon.
2013-02-20handsfree-audio: Add Agent "Unregister"Claudio Takahasi1-1/+24
This patch implements the "Unregister" method of the Handsfree Audio Manager. The agent is unregistered if sender and path match.
2013-02-20handsfree-audio: Free agent when exitingClaudio Takahasi1-0/+11
Free agent allocated resources when oFono exits.
2013-02-20handsfree-audio: Add codec array validationVinicius Costa Gomes1-1/+13
This patch checks if the codec array included in the "Register" method contains valid codec ID's.
2013-02-20handsfree-audio: Add Agent "Register" methodClaudio Takahasi1-1/+38
This patch adds the initial Handsfree Audio Manager "Register" method implementation. It adds the parsing of the arguments included in the message and checks if there is an agent registered already.
2013-02-20main: Call handsfree audio manager init and cleanupClaudio Takahasi1-0/+4
2013-02-20handsfree-audio: Add Manager registrationClaudio Takahasi3-1/+86
Adds the initial implementation of new experimental Handsfree Audio Manager interface. This patch adds the interface registration and the declaration of it's methods.
2013-02-19doc: Add experimental handsfree-audio APIDenis Kenzior1-0/+96
2013-02-14hfp_hf_bluez5: Ensure active SLC for SCO linksDenis Kenzior1-1/+23
Whenever a SCO connection is attempted, ensure that the SLC link is already active between us and the same remote peer.
2013-02-14hfp_hf_bluez5: Remove use of hash tableDenis Kenzior1-10/+14
The number of paired devices is quite small, so the use of the hash table for lookup seems unnecessary. The typical user will have no more than 1-2 devices paired, maybe half a dozen in a less common case.
2013-02-14hfp_hf_bluez5: Use faster method of disable()Denis Kenzior1-9/+14
2013-02-14modem: Implement ofono_modem_findDenis Kenzior1-0/+16
2013-02-14include: Add ofono_modem_findDenis Kenzior1-0/+6
2013-02-14hfp_hf_bluez5: Remove unneeded modem hash lookupClaudio Takahasi1-4/+0
Modem object is created when the Device Proxy is added, and it is paired. Another path is when the Device "Paired" property changes to True.
2013-02-14hfp_hf_bluez5: Use some tricks to optimize codeDenis Kenzior1-39/+27
2013-02-14gdbus: Add g_dbus_proxy_set_removed_watchDenis Kenzior2-0/+20
2013-02-14hfp_hf_bluez5: Add support for Enabling/Disabling the modemVinicius Costa Gomes1-2/+37
Now that we have the support for sending the correct messages to BlueZ, we are able to dynamically power up/down the HFP modem. We add another property to the modem to be able to get the D-Bus object path that represents the remote device.
2013-02-14hfp_hf_bluez5: Add Profile RequestDisconnectionClaudio Takahasi1-3/+32
This patch implements RequestDisconnection method of the Profile1 interface. This method gets called when the profile gets disconnected. The profile implementation needs to cleanup the resources related to the informed device.
2013-02-14bluez5: Add support for Connecting/Disconnecting per UUIDVinicius Costa Gomes2-0/+102
This adds supports for sending the ConnectProfile() and DisconnectProfile() messages for the org.bluez.Device1 interface.
2013-02-14bluez5: Rename BlueZ Profile registration functionsClaudio Takahasi4-8/+8
This patch renames external profile registration functions replacing the prefix from 'bluetooth_' to 'bt_' in order to follow the name convention adopted for bluez5 functions.
2013-02-14gdbus: Fix missing PropertiesChanged signalVinicius Costa Gomes1-2/+5
If D-Bus ObjectManager is not supported, InterfacesAdded signal checking needs to be ignored otherwise PropertiesChanged signal will never be sent.
2013-02-11gdbus: Don't call property changed callback during client initMarcel Holtmann1-9/+10
When the client uses ObjectManager to init properties, do not call property changed callbacks. They should only be called once the proxy added has been successfully signaled since the proxy itself provides a full copy of available properties.
2013-02-01gdbus: Fix unpublished interface signal emissionJohan Hedberg1-0/+4
If we haven't published an interface yet (i.e. it's in the data->added list), we should just ignore any property changed indications as the values for the properties will anyway be part of the InterfacesAdded signal.
2013-01-31hfp_ag: Add BlueZ 5 versionFrédéric Danis2-0/+274
This patch adds initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections. The HFP AG profile interface is registered as soon as a voice capable modem is registered in oFono.
2013-01-31hfp_hf_bluez5: Remove BlueZ devices proxies hashClaudio Takahasi1-13/+2
The hash table to track the devices is not necessary anymore since dynamic modem registration on NewConnection was removed.
2013-01-31hfp_hf_bluez5: Fix registering modem on NewConnectionClaudio Takahasi1-20/+3
HFP modem will be registered when Proxy Added callback gets called or when Pair is True. This patch removes the support for dynamic modem registration when a new connection is notified and there isn't a modem associated with the Bluetooth remote device. BlueZ behaviour has been changed and a NewConnection is not notified before the service discovery finishes.
2013-01-31hfp_hf_bluez5: Remove unneeded error handlingVinicius Costa Gomes1-5/+0
Apart from g_io_channel_unix_new() not setting errno, it never returns an NULL pointer on error, because in practice it only calls g_new().
2013-01-30bluetooth: Rename HFP AG pluginFrédéric Danis2-4/+5
As BlueZ 5 introduced backwards incompatible API changes, and we want to keep support for BlueZ 4 based HFP AG plugin for some time, we need to separate HFP AG plugin which is based on BlueZ 4 from the one based on BlueZ 5. The hfp_ag.c plugin is renamed to hfp_ag_bluez4. This will make it easy to add an HFP AG plugin for BlueZ 5.
2013-01-30hfp_hf_bluez5: Only register modems for Paired devicesVinicius Costa Gomes1-20/+41
When there are many devices around that support the HFP AG profile, we may have a lot of modems that the user will never use.
2013-01-30hfp_hf_bluez5: Improve Proxy property changed handlingClaudio Takahasi1-3/+2
This patch removes unnecessary GDBusProxy object access when property changed is triggered. The property name and the argument iterator is informed in the function callback.
2013-01-30TODO: Add task for supporting BlueZ 5 in dundeeVinicius Costa Gomes1-0/+9
2013-01-29hfp_hf_bluez5: Fix missing fd closeClaudio Takahasi1-1/+3
This patch fix an unusual scenario, service_level_connection() fails if GIOChannel or GAtChat memory allocation fails.
2013-01-29hfp_hf_bluez5: Rename 'Address' to 'Remote'Vinicius Costa Gomes1-2/+2
Rename this property to better indicate that it is the remote Address being referred to.
2013-01-29bluez5: Add RFCOMM socket address declarationClaudio Takahasi1-0/+7
This patch adds a copy of Bluetooth RFCOMM socket declaration.
2013-01-29bluez5: Add bt_bacmp()Claudio Takahasi2-0/+7
Adds a copy of BlueZ bacmp() function.
2013-01-29bluez5: Add bt_ba2str()Claudio Takahasi3-0/+10
Adds a copy of BlueZ ba2str() function.
2013-01-29hfp_hf_bluez5: Add SCO listen socketClaudio Takahasi1-0/+76
This patch adds the initial SCO server socket handling. BtIO and BlueZ functions should not be used, with the new Profile API the objetive is to get rid of these dependencies.
2013-01-29bluez5: Add bt_bacpy()Claudio Takahasi2-0/+8
Adds a copy of BlueZ bacpy() function.
2013-01-29bluez5: Add SCO socket declarationsClaudio Takahasi3-0/+33
Adds local copy of SCO Bluetooth sockets declarations, since the objective to avoid including BlueZ library headers.
2013-01-23hfp_hf_bluez5: Add SLC establishment procedureVinicius Costa Gomes1-6/+169
When receiving a NewConnection call from BlueZ, initiates the Service Level Connection using the received file descriptor. The HFP modem sub-components (devinfo, voicecall, netreg, handsfree and callvolume) are created at this point.
2013-01-23hfp_hf_bluez5: Handle NewConnection from BlueZVinicius Costa Gomes1-3/+48
Parse the essential arguments in the message, in this case only the file descriptor, and register the modem if it is not already registered. This is necessary because in some cases, we may receive a NewConnection call, and the SDP process is still taking place.
2013-01-23hfp_hf_bluez5: Follow HFP AG device Alias propertyVinicius Costa Gomes1-1/+17
If the device Alias property changes we should also change the name of the modem.
2013-01-23hfp_hf_bluez5: Register modem for HFP AG devicesVinicius Costa Gomes1-1/+77
Now that we are able to keep track of devices appearing and disappearing from BlueZ, we are able to register the modem when a device that supports the HFP AG UUID appears.
2013-01-23bluez5: Add HFP_AG_UUIDVinicius Costa Gomes1-0/+1
2013-01-23hfp_hf_bluez5: Add tracking of bluetooth devicesVinicius Costa Gomes1-3/+20
This patch tracks the GDBusProxy for Bluetooth devices in order to be able to get their properties.
2013-01-23hfp_hf_bluez5: Initial GDBusClient for BlueZVinicius Costa Gomes1-4/+47
This patch adds the initial callbacks to track when BlueZ connects so we can register our HFP external profile handler. And tracks the interfaces added or removed.