summaryrefslogtreecommitdiffstats
path: root/plugins
AgeCommit message (Collapse)AuthorFilesLines
2013-03-26sim900: Properly clean up device IOChannel on errorDenis Kenzior1-1/+5
2013-03-26sim900: Add multiplexer supportRenat Zaripov1-30/+171
Also add gprs and call-volume support.
2013-03-26sim900: Fix leak of options hash tableDenis Kenzior1-0/+2
2013-03-21hfp_ag_bluez5: Fix sanity checkDenis Kenzior1-2/+2
We should be checking that modems != NULL, not modems->data. This is because the list can be empty and we would crash.
2013-03-21dun_gw_bluez5: Fix sanity checkDenis Kenzior1-2/+2
We should be checking that modems != NULL, not modems->data. This is because the list can be empty and we would crash.
2013-03-21dun_gw_bluez5: Fix copy-paste errorDenis Kenzior1-1/+1
2013-03-21dun_gw: Add BlueZ 5 versionFrédéric Danis2-0/+236
This patch adds initial implementation of the D-Bus Profile1 interface and methods responsible for handling Bluetooth connections. The DUN GW profile interface is registered as soon as a GPRS capable modem is registered in oFono.
2013-03-21bluetooth: Rename DUN GW pluginFrédéric Danis1-2/+3
As BlueZ 5 introduced backwards incompatible API changes, and we want to keep support for BlueZ 4 based DUN GW plugin for some time, we need to separate DUN GW plugin which is based on BlueZ 4 from the one based on BlueZ 5. The dun_gw.c plugin is renamed to dun_gw_bluez4. This will make it easy to add a DUN GW plugin for BlueZ 5.
2013-03-18hfp_hf_bluez5: Set remote and local informationDenis Kenzior1-0/+2
2013-03-18hfp_hf_bluez5: Update to the new APIDenis Kenzior1-1/+1
2013-03-12hfp_hf_bluez5: Remove duplicated includeClaudio Takahasi1-1/+0
2013-03-04hfp_hf_bluez5: Remove SCO handlingClaudio Takahasi1-101/+1
This patch moves the SCO socket handling from hfp_hf_bluez5 plugin. It will be instead handled by the handsfree-audio functionality. This is the initial step to be able to support sending the file descriptor through the Agent NewConnection method.
2013-03-04hfp_hf_bluez5: Use new bluetooth.h headerClaudio Takahasi1-0/+1
2013-03-04bluez5: Remove Bluetooth related utilitiesClaudio Takahasi2-58/+0
2013-03-04bluez5: Add bt_register_profile_with_rolePaulo Borges2-2/+17
This function allows to specify which role is registering when the profile does not have specific UUIDs for each role.
2013-03-01bluez5: Move ref / unref handsfree audioPaulo Borges2-14/+6
This commit moves the ref / unref to hfp_hf_bluez5 to make bluez5 more generic and reusable.
2013-02-28hfp_hf_bluez5: Remove Card on RequestDisconnectionClaudio Takahasi1-0/+3
For local initiated disconnection the GAtChat disconnect callback is not called. For this case, Audio Card remove function needs to be called.
2013-02-28hfp_hf_bluez5: Remove Card when modem is disabledClaudio Takahasi1-0/+3
2013-02-28hfp_hf_bluez5: Remove Card if SLC is disconnectedClaudio Takahasi1-0/+3
This patch removes previous registered Audio Card when the remote Bluetooth device triggers the service level disconnection.
2013-02-28hfp_hf_bluez5: Remove Card when SLC failsClaudio Takahasi1-0/+3
This patch removes the previously created Audio Card if the service level negotiation fails.
2013-02-28hfp_hf_bluez5: Add local address to Audio CardClaudio Takahasi1-2/+15
2013-02-28hfp_hf_bluez5: Add registering Audio CardClaudio Takahasi1-0/+21
This patch registers the Handsfree Audio Card when the service level connection is established.
2013-02-26bluez4: Increase Bluez 4 D-Bus timeouts to 60 secondsPatrik Flykt1-1/+1
RequestAuthorization method call may trigger pairing and/or pop up a dialog in the remote device to which the user needs to react. Thus increase D-Bus timeouts to 60 seconds for the Bluez 4 plugin.
2013-02-21bluez5: ref / unref handsfree audioDenis Kenzior1-1/+14
2013-02-20hfp_ag_bluez5: Send HFP version when registeringClaudio Takahasi1-2/+6
2013-02-20hfp_hf_bluez5: Send HFP version when registeringClaudio Takahasi1-1/+1
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-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-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-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-01-31hfp_ag: Add BlueZ 5 versionFrédéric Danis1-0/+271
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 Danis1-2/+3
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-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.