zephyr/include/bluetooth
Luiz Augusto von Dentz e0f3ab6bf2 Bluetooth: GATT: Add support for static services
This reintroduces support for static service in the form of a new API,
BT_GATT_SERVICE_DEFINE, and changes the internal services (GAP/GATT)
to be defined as const as they are never register/unregistered.

Internal service needed to be renamed in order to keep the same order
as before since the section elements are sorted by name.

The result is the following (make ram_report):

before:
      gatt.c                                    572     0.66%
        cf_cfg                                   32     0.04%
        db                                        8     0.01%
        db_hash                                  16     0.02%
        db_hash_work                             32     0.04%
        gap_attrs				180     0.21%
        gap_svc                                  12     0.01%
        gatt_attrs                              160     0.18%
        gatt_sc                                  80     0.09%
        gatt_svc                                 12     0.01%
        sc_ccc_cfg                               32     0.04%
        subscriptions                             8     0.01%

after:
      gatt.c                                    210     0.24%
        cf_cfg                                   32     0.04%
        db                                        8     0.01%
        db_hash                                  16     0.02%
        db_hash_work                             32     0.04%
        gatt_sc                                  80     0.09%
        last_static_handle                        2     0.00%
        sc_ccc_cfg                               32     0.04%
        subscriptions                             8     0.01%

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2019-05-02 08:29:23 +03:00
..
mesh Bluetooth: Mesh: Fix qualification test MESH/SR/HM/CFS/BV-02-C 2019-04-11 21:24:55 +03:00
services subsys: bluetooth: services: dev. information service enhancements 2018-11-07 18:08:05 +01:00
a2dp-codec.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
a2dp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
att.h Bluetooth: Add definitions for GATT Caching 2019-02-08 18:07:34 +02:00
avdtp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
bluetooth.h Bluetooth: host: Add RPA in directed advertisement support 2019-04-02 13:19:00 +02:00
buf.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
conn.h Bluetooth: Clarify bt_conn_create_slave_le documentation 2019-03-07 21:02:26 +01:00
controller.h Bluetooth: Controller: Add support for setting public address 2018-09-21 12:40:10 +02:00
crypto.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
gatt.h Bluetooth: GATT: Add support for static services 2019-05-02 08:29:23 +03:00
hci_raw.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
hci_vs.h Bluetooth: controller: Preliminary work in progress mesh ext. 2019-01-23 09:45:06 +01:00
hci.h Bluetooth: hci: adding AD types used for OOB pairing 2019-04-17 09:54:37 +03:00
hfp_hf.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
l2cap.h Bluetooth: Change l2cap accept callback return error 2018-10-26 16:56:01 +01:00
mesh.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
rfcomm.h Bluetooth: Remove custom stack macros 2018-10-19 14:50:22 +02:00
sdp.h headers: Fix headers across the project 2018-09-17 15:49:26 -04:00
testing.h Bluetooth: testing: Exclude Mesh related code if BT_MESH not set 2018-09-19 10:48:39 +03:00
uuid.h Bluetooth: Add definitions for GATT Caching 2019-02-08 18:07:34 +02:00