toolchain: migrate iterable sections calls to the external API
This migrates all the current iterable section usages to the external API, dropping the "Z_" prefix: Z_ITERABLE_SECTION_ROM Z_ITERABLE_SECTION_ROM_GC_ALLOWED Z_ITERABLE_SECTION_RAM Z_ITERABLE_SECTION_RAM_GC_ALLOWED Z_STRUCT_SECTION_ITERABLE Z_STRUCT_SECTION_ITERABLE_ALTERNATE Z_STRUCT_SECTION_FOREACH Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
34d2ca613f
commit
f88a420d69
54 changed files with 188 additions and 190 deletions
|
@ -939,7 +939,7 @@ void bt_conn_cb_register(struct bt_conn_cb *cb);
|
|||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_CONN_CB_DEFINE(_name) \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(bt_conn_cb, \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_conn_cb, \
|
||||
_CONCAT(bt_conn_cb, \
|
||||
_name))
|
||||
|
||||
|
|
|
@ -519,8 +519,8 @@ ssize_t bt_gatt_attr_read_service(struct bt_conn *conn,
|
|||
*/
|
||||
#define BT_GATT_SERVICE_DEFINE(_name, ...) \
|
||||
const struct bt_gatt_attr attr_##_name[] = { __VA_ARGS__ }; \
|
||||
const Z_STRUCT_SECTION_ITERABLE(bt_gatt_service_static, _name) =\
|
||||
BT_GATT_SERVICE(attr_##_name)
|
||||
const STRUCT_SECTION_ITERABLE(bt_gatt_service_static, _name) = \
|
||||
BT_GATT_SERVICE(attr_##_name)
|
||||
|
||||
#define _BT_GATT_ATTRS_ARRAY_DEFINE(n, _instances, _attrs_def) \
|
||||
static struct bt_gatt_attr attrs_##n[] = _attrs_def(_instances[n]);
|
||||
|
|
|
@ -111,7 +111,7 @@ struct bt_mesh_hb_cb {
|
|||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_HB_CB_DEFINE(_name) \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name)
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_hb_cb, _name)
|
||||
|
||||
/** @brief Get the current Heartbeat publication parameters.
|
||||
*
|
||||
|
|
|
@ -598,10 +598,10 @@ struct bt_mesh_lpn_cb {
|
|||
*
|
||||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_LPN_CB_DEFINE(_name) \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
|
||||
_CONCAT(bt_mesh_lpn_cb, \
|
||||
_name))
|
||||
#define BT_MESH_LPN_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_lpn_cb, \
|
||||
_CONCAT(bt_mesh_lpn_cb, \
|
||||
_name))
|
||||
|
||||
/** Friend Node callback functions. */
|
||||
struct bt_mesh_friend_cb {
|
||||
|
@ -651,10 +651,10 @@ struct bt_mesh_friend_cb {
|
|||
*
|
||||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
|
||||
static const Z_STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
|
||||
_CONCAT(bt_mesh_friend_cb, \
|
||||
_name))
|
||||
#define BT_MESH_FRIEND_CB_DEFINE(_name) \
|
||||
static const STRUCT_SECTION_ITERABLE(bt_mesh_friend_cb, \
|
||||
_CONCAT(bt_mesh_friend_cb, \
|
||||
_name))
|
||||
|
||||
/** @brief Terminate Friendship.
|
||||
*
|
||||
|
|
|
@ -50,7 +50,7 @@ struct bt_mesh_proxy_cb {
|
|||
* @param _name Name of callback structure.
|
||||
*/
|
||||
#define BT_MESH_PROXY_CB_DEFINE(_name) \
|
||||
static const Z_STRUCT_SECTION_ITERABLE( \
|
||||
static const STRUCT_SECTION_ITERABLE( \
|
||||
bt_mesh_proxy_cb, _CONCAT(bt_mesh_proxy_cb, _name))
|
||||
|
||||
/** @brief Enable advertising with Node Identity.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue