summaryrefslogtreecommitdiffstats
path: root/plugins/hfp_hf_bluez5.c
AgeCommit message (Collapse)AuthorFilesLines
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-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-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 bt_ba2str()Claudio Takahasi1-0/+1
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 SCO socket declarationsClaudio Takahasi1-0/+2
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-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.
2013-01-16hfp_hf_bluez5: Add BlueZ Profile handlerClaudio Takahasi1-1/+73
This patch declares the external HFP Profile handler. It contains the initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections.
2013-01-16hfp_hf_bluez5: Add initial skeleton implementationClaudio Takahasi1-0/+80
2013-01-16hfp_hf: Add initial file for external HFPClaudio Takahasi1-0/+42
This patch adds the initial file to support external HFP profile and BlueZ 5. "hfp_hf_bluez5" plugin will implement an external Bluetooth profile compatible with BlueZ 5, and "hfp_hf_bluez4" plugin will keep the compatibility with BlueZ 4.