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>
|
||
|---|---|---|
| .. | ||
| mesh | ||
| services | ||
| a2dp-codec.h | ||
| a2dp.h | ||
| att.h | ||
| avdtp.h | ||
| bluetooth.h | ||
| buf.h | ||
| conn.h | ||
| controller.h | ||
| crypto.h | ||
| gatt.h | ||
| hci_raw.h | ||
| hci_vs.h | ||
| hci.h | ||
| hfp_hf.h | ||
| l2cap.h | ||
| mesh.h | ||
| rfcomm.h | ||
| sdp.h | ||
| testing.h | ||
| uuid.h | ||