Commit Graph

6862 Commits

Author SHA1 Message Date
Claudio Takahasi 9fb87705c2 bluetooth: Add profile register / unregister
Adds utility API to handle BlueZ 5 RegisterProfile and UnregisterProfile
methods.
2013-01-16 13:54:00 -06:00
Claudio Takahasi 2b7d96a223 hfp_hf: Add initial file for external HFP
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.
2013-01-16 13:43:06 -06:00
Claudio Takahasi 0973479c29 bluetooth: Initial files for BlueZ 5
This patch adds the file for Bluetooth(BlueZ 5) oFono plugin.
2013-01-16 13:41:08 -06:00
Claudio Takahasi caad5322f6 bluetooth: Rename bluetooth plugins
As BlueZ 5 introduced backwards incompatible API changes, and we want to
keep support for BlueZ 4 based plugins for some time, we need to separate
the plugins that are based on BlueZ 4 from the ones based on BlueZ 5.

The bluetooth.c plugin has now been renamed to bluez4.c and the hfp_hf.c
plugin is renamed to hfp_hf_bluez4.  This will make it easy to add a
HFP HF plugin for BlueZ 5.
2013-01-16 13:37:23 -06:00
Claudio Takahasi 145112dad2 build: Add configure option for BlueZ 5 support
Going forward, BlueZ 5 will be supported by default.  BlueZ 4 support
will have to be explicitly enabled by using '--enable-bluez4'.

As before, the '--disable-bluetooth' configure option will disable all
bluetooth support (BlueZ 4 and BlueZ 5)
2013-01-16 13:34:22 -06:00
Denis Kenzior b67e68e753 sim: Fix whitespace violation 2013-01-15 12:16:08 -06:00
Denis Kenzior 8bd6b7c6c5 phonesim: Add support for SIM hotswap 2013-01-01 23:16:05 -06:00
Denis Kenzior 7fca6fca90 stk: Fix crash with Modem-Handled SIM Refresh 2013-01-01 21:40:14 -06:00
Denis Kenzior e744f9159d Revert "stk: Fix crash in SIM refresh handling"
This reverts commit dfd1fae50b.
2013-01-01 21:03:23 -06:00
Denis Kenzior 3e996d9e1f AUTHORS: Mention Forest's contributions 2012-12-30 20:37:44 -06:00
Forest Bond 11a3337a58 sierra: Initialize GSM error reporting separately 2012-12-30 20:35:58 -06:00
Forest Bond 2c91a4bb65 sierra: Create GPRS context in post_sim function
This matches the huawei plugin.
2012-12-30 20:35:53 -06:00
Anderson Lizardo 45bc35e534 gdbus: Fix memory leak on properties_set()
The pointer returned by dbus_message_iter_get_signature() must be freed
with dbus_free().

Fixes this memory leak:

==1857== 16 bytes in 1 blocks are definitely lost in loss record 104 of
251
==1857==    at 0x402BF52: realloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==1857==    by 0x415E286: dbus_realloc (in
/lib/i386-linux-gnu/libdbus-1.so.3.5.8)
==1857==    by 0x415E70B: ??? (in
/lib/i386-linux-gnu/libdbus-1.so.3.5.8)
==1857==    by 0x415F17B: ??? (in
/lib/i386-linux-gnu/libdbus-1.so.3.5.8)
==1857==    by 0x414CB33: dbus_message_iter_get_signature (in
/lib/i386-linux-gnu/libdbus-1.so.3.5.8)
==1857==    by 0x8053239: properties_set (object.c:899)
==1857==    by 0x5FFFFF: ???
==1857==
2013-01-06 14:49:03 -08:00
Marcel Holtmann 3143ea126e gdbus: Check signature of property value before calling setter 2013-01-05 00:45:35 -08:00
Lucas De Marchi a39520e1be gdbus: Don't include just added interfaces in GetManagedObjects
If we received a call to ObjectManager.GetManagedObject we should not
include in the response the interfaces in data->added. This is because
it's not guaranteed that those interfaces will trigger an
InterfacesAdded signal, which is the case if the interface is removed in
the same mainloop iteration.
2013-01-03 21:34:18 -08:00
Lucas De Marchi 7482480294 gdbus: Simplify generated introspection
The generated introspection is not supposed to be read as is by human,
so there's no point in printing the indentation or writing more code to
use auto-close tags.

If it's desired to read the raw xml file, user can always use other
tools to transform the output such as "xmllint --format".

This also fixes a missing </property> when property is deprecated.
2013-01-03 21:34:18 -08:00
Marcel Holtmann 7738e3a92c gdbus: Hold client reference during get name owner reply 2013-01-02 07:37:35 -08:00
Luiz Augusto von Dentz a559a4993b gdbus: Call check_signals when sending signals with g_dbus_send_message
If message passed to g_dbus_send_message is a signal verify if it is a
valid and there really exists an interface with respective signal name.
2012-12-30 10:49:27 -08:00
Luiz Augusto von Dentz 9ed7b17ca3 gdbus: Check if the interface being registered is valid
This prevent registering interfaces that are empty or have all members
marked as experiemental.
2012-12-30 10:49:27 -08:00
Luiz Augusto von Dentz 5f8485bcc1 gdbus: Introduce G_DBUS_PROPERTY_FLAG_EXPERIMENTAL
This flag can be used to mark properties as experimental, marked
properties are disabled by default and can be enabled by setting
G_DBUS_FLAG_ENABLE_EXPERIMENTAL using g_dbus_set_flags.
2012-12-30 10:49:27 -08:00
Luiz Augusto von Dentz 4b14fcc9a1 gdbus: Introduce G_DBUS_SIGNAL_FLAG_EXPERIMENTAL
This flag can be used to mark signals as experimental, marked
signals are disabled by default and can be enabled by setting
G_DBUS_FLAG_ENABLE_EXPERIMENTAL using g_dbus_set_flags.
2012-12-30 10:49:27 -08:00
Luiz Augusto von Dentz 4b50c0bd05 gdbus: Introduce G_DBUS_METHOD_FLAG_EXPERIMENTAL
This flag can be used to mark methods as experimental, marked
methods are disable by default and can be enabled by setting
G_DBUS_FLAG_ENABLE_EXPERIMENTAL using g_dbus_set_flags.
2012-12-30 10:49:27 -08:00
Marcel Holtmann 37a54d0433 gdbus: Include changed properties only once per signal 2012-12-30 00:58:59 -08:00
Marcel Holtmann 2f3da9cdf4 gdbus: Update properties on D-Bus client re-connections 2012-12-29 14:49:38 -08:00
Marcel Holtmann f9f6536b2b gdbus: Add function to manually refresh properties 2012-12-29 14:49:38 -08:00
Marcel Holtmann 816c028a94 gdbus: Add support for proxy property change notifications 2012-12-29 14:49:38 -08:00
Marcel Holtmann d3899c7af6 gdbus: Fix handling of client connect/disconnect signals 2012-12-29 14:49:38 -08:00
Marcel Holtmann cdd1febd4d gdbus: Protect standalone proxy creation with client reference 2012-12-29 14:49:37 -08:00
Marcel Holtmann 9ba681ddcd gdbus: Use object manager only if callback functions are set 2012-12-27 23:59:19 -08:00
Marcel Holtmann 91e3369a38 gdbus: Use client service name and not hardcoded org.bluez 2012-12-27 23:59:19 -08:00
Marcel Holtmann 8bef871cff gdbus: Add support for creating D-Bus proxies without object manager 2012-12-27 23:59:19 -08:00
Marcel Holtmann d1bd840d2e gdbus: Avoid using g_ptr_array_new_full convenience function
The g_ptr_array_new_full function only got introduced with GLib 2.30
and to avoid requiring a newer GLib use g_ptr_array_set_free_func instead.
2012-12-22 12:09:58 -08:00
Marcel Holtmann 649ee6bf67 Release 1.12 2012-12-20 00:10:11 +01:00
Denis Kenzior 8fa878de30 doc: Add USAT certification status document 2012-12-19 14:01:05 -06:00
Marcel Holtmann 5cf66a7d38 build: Compile support for new D-Bus client helpers 2012-12-19 03:51:22 +01:00
Marcel Holtmann fcab2080be gdbus: Increase the method call timeout to 5 minutes 2012-12-19 03:50:43 +01:00
Marcel Holtmann e7ca33f908 gdbus: Add helper for sending async error replies 2012-12-19 03:50:42 +01:00
Marcel Holtmann 5de077a604 gdbus: Fix race condition with creating duplicate client proxies 2012-12-19 03:50:42 +01:00
Marcel Holtmann 4a0cab2f85 gdbus: Fix issue with unref of client while parsing interfaces 2012-12-19 03:50:42 +01:00
Marcel Holtmann c3d3a3a661 gdbus: Fix issue with unref of client in connect handler 2012-12-19 03:50:42 +01:00
Marcel Holtmann 33ff02e3a4 gdbus: Add support for D-Bus client method calls 2012-12-19 03:50:42 +01:00
Marcel Holtmann 90c719f29c gdbus: Add callback support for handling property changes 2012-12-19 03:50:42 +01:00
Marcel Holtmann f40f27cd44 gdbus: Handle property changed signals and update property 2012-12-19 03:50:42 +01:00
Marcel Holtmann 64103f35a1 gdbus: Set property changed filter match rule for each proxy 2012-12-19 03:50:42 +01:00
Marcel Holtmann ec448e4d36 gdbus: Use a GPtrArray for the match rules 2012-12-19 03:50:42 +01:00
Marcel Holtmann 7ba21da7f3 gdbus: Add support for setting D-Bus client basic properties 2012-12-19 03:50:42 +01:00
Marcel Holtmann 37a3708928 gdbus: Deep copy of variants also requires a signature 2012-12-19 03:50:42 +01:00
Marcel Holtmann ada304fb01 gdbus: Add support for complex D-Bus client properties 2012-12-19 03:50:42 +01:00
Marcel Holtmann 8ec0dab7fa gdbus: Add support for D-Bus client properties 2012-12-19 03:50:42 +01:00
Marcel Holtmann b30177d961 gdbus: Add support for D-Bus client proxies 2012-12-19 03:50:42 +01:00