Commit Graph

12885 Commits

Author SHA1 Message Date
Marcel Holtmann
82e196d32a emulator: Relax license restrictions on device emulation 2012-12-17 20:37:37 +01:00
Marcel Holtmann
9254a9476d monitor: Relax license restrictions on structures 2012-12-17 20:37:36 +01:00
Johan Hedberg
a9d896b9a0 core: Create distinct setting update functions
Create clear setting update functions for pairable, connectable and
discoverable.
2012-12-17 21:10:45 +02:00
Johan Hedberg
d2068f26fe core: Fix updating adapter settings when powered off 2012-12-17 21:00:16 +02:00
Johan Hedberg
4365fd382a core: Fix passing right signedness err to strerror 2012-12-17 20:29:56 +02:00
Frédéric Danis
63e87cbadd TODO: Mark convert storage to ini-file item as done 2012-12-17 17:53:47 +02:00
Frédéric Danis
73a1dbfef9 bluetoothd: Remove storage info from man page 2012-12-17 17:53:14 +02:00
Frédéric Danis
3f7e43ec65 adapter: Fix invalid read in conversions
==8664== Invalid read of size 1
==8664==    at 0x45B214: convert_entry (adapter.c:2325)
==8664==    by 0x456A44: textfile_foreach (textfile.c:464)
==8664==    by 0x45A823: convert_file (adapter.c:2387)
==8664==    by 0x45ABDE: convert_device_storage (adapter.c:2869)
==8664==    by 0x45F6CE: adapter_init (adapter.c:3043)
==8664==    by 0x4594D9: btd_manager_register_adapter (manager.c:176)
==8664==    by 0x46DB3E: mgmt_event.part.38 (mgmt.c:1206)
==8664==    by 0x4E79D52: g_main_context_dispatch (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==8664==    by 0x4E7A09F: ??? (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==8664==    by 0x4E7A499: g_main_loop_run (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3200.3)
==8664==    by 0x409D53: main (main.c:513)
==8664==  Address 0x60b99c1 is not stack'd, malloc'd or (recently) free'd
==8664==
2012-12-17 17:53:13 +02:00
Frédéric Danis
06b401839e adapter: Remove support of pincodes storage file
This is no more supported in new storage.
2012-12-17 17:53:11 +02:00
Frédéric Danis
a4f853f6d3 proximity: Use new storage architecture 2012-12-17 17:53:08 +02:00
Frédéric Danis
4a0ae77acf adapter: Convert proximity file 2012-12-17 17:53:06 +02:00
Frédéric Danis
a6836509c1 gatt: Use new storage architecture 2012-12-17 17:53:04 +02:00
Frédéric Danis
5f8e8769a5 adapter: Convert gatt file 2012-12-17 17:53:01 +02:00
Frédéric Danis
a5a2ed54e9 device: Load appearance from storage
Update adapter_update_found_devices() to store appearance in device.

Remove no more used functions in storage.[ch].
2012-12-17 17:52:49 +02:00
Frédéric Danis
d3ff2e3395 adapter: Convert appearances file 2012-12-17 17:52:35 +02:00
Frédéric Danis
68520a3ddd doc: Add device appearance in settings-storage doc 2012-12-17 17:52:07 +02:00
Frédéric Danis
0cc8872fe0 alert: Use ccc file from device storage 2012-12-17 17:51:52 +02:00
Frédéric Danis
5733cedd36 adapter: Add btd_adapter_for_each_device() 2012-12-17 17:51:50 +02:00
Luiz Augusto von Dentz
13b43ccb28 core: Fix emitting changes to properties on power off
Discoverable and pairable are independent to the powered state so they
should not be changed just because the controller power state is set to
off.
2012-12-17 17:51:13 +02:00
Luiz Augusto von Dentz
35b3f445a0 core: Remove mode session code
Mode session no longer are needed since RequestSession is gone
2012-12-17 17:51:01 +02:00
Luiz Augusto von Dentz
34bc7e486f core: Simplify set_powered to not use set_mode 2012-12-17 17:50:59 +02:00
Luiz Augusto von Dentz
e182088426 core: Fix set_discoverable to not attempt to power on the adapter
Discoverable flag is completely independent flag for the kernel so we
can reflect this in the D-Bus API.
2012-12-17 17:50:58 +02:00
Luiz Augusto von Dentz
be60e30486 core: Fix set_pairable to not attempt to power on the adapter
Pairable flag is completely independent flag for the kernel so we can
reflect this in the D-Bus API.
2012-12-17 17:50:51 +02:00
Johan Hedberg
014da6f986 TODO: Add completed AgentManager item not to forget it in release notes 2012-12-17 17:14:34 +02:00
Szymon Janc
55e27a1cdd adapter: Remove not used btd_adapter_get_mode
This function is not used anymore and adapter mode is now internal to
btd_adapter.
2012-12-17 16:59:35 +02:00
Szymon Janc
d4b14283cf mgmt: Remove not needed power state change in read_info_complete
Initial power state is no longer set up by bluetoothd.
2012-12-17 16:59:34 +02:00
Szymon Janc
2281a5b410 core: Remove mode option form main_opts
Config option is removed so this is no longer needed.
2012-12-17 16:59:32 +02:00
Szymon Janc
7c50054dd6 adapter: Remove scan_mode member
This is not needed anymore as boolean flags can be used instead.
2012-12-17 16:59:31 +02:00
Szymon Janc
916fa9b671 adapter: Use discoverable memeber instead of scan_mode
Where possible use discoverable memeber instead of checking scan_mode
against SCAN_INQUIRY flag.
2012-12-17 16:59:29 +02:00
Szymon Janc
20d5839ed8 adapter: Add connectable member to btd_adapter
This will be used to track if adapter is in connectable state.
2012-12-17 16:59:27 +02:00
Szymon Janc
37092b1586 adapter: Remove not used parameter from btd_adapter_get_mode
discoverable_timeout is not used outside of adapter code.
2012-12-17 16:59:26 +02:00
Szymon Janc
6827f2a0b3 adapter: Add btd_adapter_get_pairable function
Add btd_adapter_get_pairable and remove pairable argument from
btd_adapter_get_mode. Use btd_adapter_get_pairable to get pairable
state where needed.
2012-12-17 16:59:24 +02:00
Szymon Janc
57c2163c3b adapter: Make adapter_mode_changed accept mode as bool params
Pass connectable and discoverable as bools.
2012-12-17 16:59:22 +02:00
Szymon Janc
c208e40402 manager: Rename btd_manager_register_adapter up parameter to powered
Match parameter name to adapter_init parameter name.
2012-12-17 16:59:20 +02:00
Szymon Janc
d1f8fc54ba adapter: Rename btd_adapter *up members to *powered
This better describes those members purpose.
2012-12-17 16:59:18 +02:00
Johan Hedberg
b195946f5f doc: Remove bogus Powered entry from settings-storage.txt 2012-12-17 16:54:21 +02:00
Luiz Augusto von Dentz
3a9d39d879 test: Fix pbap-client to handle PullAll reply properly
PullAll reply consist in 2 parameters, the transfer object followed by
its properties not a structure containing both.
2012-12-17 16:32:02 +02:00
Luiz Augusto von Dentz
3eadc034c9 obex-client: Make use of g_dbus_get_properties to get transfer properties
In addition fix the reply generated by obc_transfer_create_dbus_reply to
not use a structure container instead use object, dict 'oa{sv}' as
indicated in the documentation.
2012-12-17 16:31:59 +02:00
Johan Hedberg
88de7b0530 core: Remove implicit setting of the default agent 2012-12-17 15:18:46 +02:00
Johan Hedberg
1c698db14c test: Make simple-agent accept BlueZ 4 style invocation 2012-12-17 15:02:05 +02:00
Johan Hedberg
f9ceb20d83 core: Remove useless adapter_set_mode function 2012-12-17 14:30:41 +02:00
Johan Hedberg
46ab65b9f1 test: Update simple-agent to use AgentManager1.RequestDefault 2012-12-17 14:26:10 +02:00
Luiz Augusto von Dentz
099fedaf95 TODO: Mark Convert obexd & obex-client to ObjectManager/Properties as done 2012-12-17 14:10:39 +02:00
Luiz Augusto von Dentz
27635e590b obex-client: Enable ObjectManager 2012-12-17 14:10:36 +02:00
Luiz Augusto von Dentz
e4cc2de1c7 obexd: Remove SessionCreated and SessionRemoved signals
With ObjectManager these signals no longer are necessary.
2012-12-17 14:10:34 +02:00
Luiz Augusto von Dentz
54f6035e45 obexd: Enable ObjectManager 2012-12-17 14:10:32 +02:00
Luiz Augusto von Dentz
b8972b65e5 obexd: Port session interface to use D-Bus Properties 2012-12-17 14:10:30 +02:00
Johan Hedberg
a421d43fc7 core: Fix ref count for device_create
The device_new function already returns a new ref count so there's no
need to increment it.
2012-12-17 14:01:06 +02:00
Johan Hedberg
d1711f9000 test: Remove non-existent agent callback from simple-agent 2012-12-17 13:57:44 +02:00
Johan Hedberg
ce5cd675a3 core: Fix removing profiles from the connected profiles list 2012-12-17 13:48:00 +02:00