@@ -42,8 +42,8 @@ struct bt_mesh_brg_cfg_cli_cb {
42
42
* @param addr Address of the sender.
43
43
* @param status Status received from the server.
44
44
*/
45
- void (* subnet_bridge_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
46
- enum bt_mesh_subnet_bridge_state status );
45
+ void (* bridge_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
46
+ enum bt_mesh_brg_cfg_state status );
47
47
48
48
/** @brief Optional callback for Bridging Table Size Status message.
49
49
*
@@ -54,8 +54,7 @@ struct bt_mesh_brg_cfg_cli_cb {
54
54
* @param addr Address of the sender.
55
55
* @param size Size received from the server.
56
56
*/
57
- void (* bridging_table_size_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
58
- uint16_t size );
57
+ void (* table_size_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr , uint16_t size );
59
58
60
59
/** @brief Optional callback for Bridging Table Status message.
61
60
*
@@ -66,8 +65,8 @@ struct bt_mesh_brg_cfg_cli_cb {
66
65
* @param addr Address of the sender.
67
66
* @param rsp Response received from the Bridging Configuration Server.
68
67
*/
69
- void (* bridging_table_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
70
- struct bt_mesh_bridging_table_status * rsp );
68
+ void (* table_status )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
69
+ struct bt_mesh_brg_cfg_table_status * rsp );
71
70
72
71
/** @brief Optional callback for Bridged Subnets List message.
73
72
*
@@ -78,8 +77,8 @@ struct bt_mesh_brg_cfg_cli_cb {
78
77
* @param addr Address of the sender.
79
78
* @param rsp Response received from the Bridging Configuration Server.
80
79
*/
81
- void (* bridged_subnets_list )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
82
- struct bt_mesh_bridged_subnets_list * rsp );
80
+ void (* subnets_list )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
81
+ struct bt_mesh_brg_cfg_subnets_list * rsp );
83
82
84
83
/** @brief Optional callback for Bridging Table List message.
85
84
*
@@ -90,8 +89,8 @@ struct bt_mesh_brg_cfg_cli_cb {
90
89
* @param addr Address of the sender.
91
90
* @param rsp Response received from the Bridging Configuration Server.
92
91
*/
93
- void (* bridging_table_list )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
94
- struct bt_mesh_bridging_table_list * rsp );
92
+ void (* table_list )(struct bt_mesh_brg_cfg_cli * cli , uint16_t addr ,
93
+ struct bt_mesh_brg_cfg_table_list * rsp );
95
94
};
96
95
97
96
/** Bridge Configuration Client Model Context */
@@ -121,13 +120,12 @@ struct bt_mesh_brg_cfg_cli {
121
120
* @param net_idx Network index to encrypt the message with.
122
121
* @param addr Target node address.
123
122
* @param status Status response parameter, returns one of
124
- * @ref BT_MESH_SUBNET_BRIDGE_DISABLED or
125
- * @ref BT_MESH_SUBNET_BRIDGE_ENABLED on success.
123
+ * @ref BT_MESH_BRG_CFG_DISABLED or
124
+ * @ref BT_MESH_BRG_CFG_ENABLED on success.
126
125
*
127
126
* @return 0 on success, or (negative) error code on failure.
128
127
*/
129
- int bt_mesh_brg_cfg_cli_subnet_bridge_get (uint16_t net_idx , uint16_t addr ,
130
- enum bt_mesh_subnet_bridge_state * status );
128
+ int bt_mesh_brg_cfg_cli_get (uint16_t net_idx , uint16_t addr , enum bt_mesh_brg_cfg_state * status );
131
129
132
130
/** @brief Sends a Subnet Bridge Set message to the given destination address
133
131
* with the given parameters
@@ -145,17 +143,16 @@ int bt_mesh_brg_cfg_cli_subnet_bridge_get(uint16_t net_idx, uint16_t addr,
145
143
* @param net_idx Network index to encrypt the message with.
146
144
* @param addr Target node address.
147
145
* @param val Value to set the Subnet Bridge state to. Must be one of
148
- * @ref BT_MESH_SUBNET_BRIDGE_DISABLED or
149
- * @ref BT_MESH_SUBNET_BRIDGE_ENABLED .
146
+ * @ref BT_MESH_BRG_CFG_DISABLED or
147
+ * @ref BT_MESH_BRG_CFG_ENABLED .
150
148
* @param status Status response parameter, returns one of
151
- * @ref BT_MESH_SUBNET_BRIDGE_DISABLED or
152
- * @ref BT_MESH_SUBNET_BRIDGE_ENABLED on success.
149
+ * @ref BT_MESH_BRG_CFG_DISABLED or
150
+ * @ref BT_MESH_BRG_CFG_ENABLED on success.
153
151
*
154
152
* @return 0 on success, or (negative) error code on failure.
155
153
*/
156
- int bt_mesh_brg_cfg_cli_subnet_bridge_set (uint16_t net_idx , uint16_t addr ,
157
- enum bt_mesh_subnet_bridge_state val ,
158
- enum bt_mesh_subnet_bridge_state * status );
154
+ int bt_mesh_brg_cfg_cli_set (uint16_t net_idx , uint16_t addr , enum bt_mesh_brg_cfg_state val ,
155
+ enum bt_mesh_brg_cfg_state * status );
159
156
160
157
/** @brief Sends a Bridging Table Size Get message to the given destination
161
158
* address with the given parameters
@@ -176,7 +173,7 @@ int bt_mesh_brg_cfg_cli_subnet_bridge_set(uint16_t net_idx, uint16_t addr,
176
173
*
177
174
* @return 0 on success, or (negative) error code on failure.
178
175
*/
179
- int bt_mesh_brg_cfg_cli_bridging_table_size_get (uint16_t net_idx , uint16_t addr , uint16_t * size );
176
+ int bt_mesh_brg_cfg_cli_table_size_get (uint16_t net_idx , uint16_t addr , uint16_t * size );
180
177
181
178
/** @brief Sends a Bridging Table Add message to the given destination address
182
179
* with the given parameters
@@ -198,9 +195,9 @@ int bt_mesh_brg_cfg_cli_bridging_table_size_get(uint16_t net_idx, uint16_t addr,
198
195
*
199
196
* @return 0 on success, or (negative) error code on failure.
200
197
*/
201
- int bt_mesh_brg_cfg_cli_bridging_table_add (uint16_t net_idx , uint16_t addr ,
202
- struct bt_mesh_bridging_table_entry * entry ,
203
- struct bt_mesh_bridging_table_status * rsp );
198
+ int bt_mesh_brg_cfg_cli_table_add (uint16_t net_idx , uint16_t addr ,
199
+ struct bt_mesh_brg_cfg_table_entry * entry ,
200
+ struct bt_mesh_brg_cfg_table_status * rsp );
204
201
205
202
/** @brief Sends a Bridging Table Remove message to the given destination
206
203
* address with the given parameters
@@ -226,9 +223,9 @@ int bt_mesh_brg_cfg_cli_bridging_table_add(uint16_t net_idx, uint16_t addr,
226
223
*
227
224
* @return 0 on success, or (negative) error code on failure.
228
225
*/
229
- int bt_mesh_brg_cfg_cli_bridging_table_remove (uint16_t net_idx , uint16_t addr , uint16_t net_idx1 ,
230
- uint16_t net_idx2 , uint16_t addr1 , uint16_t addr2 ,
231
- struct bt_mesh_bridging_table_status * rsp );
226
+ int bt_mesh_brg_cfg_cli_table_remove (uint16_t net_idx , uint16_t addr , uint16_t net_idx1 ,
227
+ uint16_t net_idx2 , uint16_t addr1 , uint16_t addr2 ,
228
+ struct bt_mesh_brg_cfg_table_status * rsp );
232
229
233
230
/** @brief Sends a Bridged Subnets Get message to the given destination address
234
231
* with the given parameters
@@ -244,7 +241,7 @@ int bt_mesh_brg_cfg_cli_bridging_table_remove(uint16_t net_idx, uint16_t addr, u
244
241
*
245
242
* When @c rsp is set, the user is responsible for providing a buffer for the
246
243
* filtered set of N pairs of NetKey Indexes in
247
- * @ref bt_mesh_bridged_subnets_list ::list. If a buffer is not provided, the
244
+ * @ref bt_mesh_brg_cfg_subnets_list ::list. If a buffer is not provided, the
248
245
* bridged subnets won't be copied.
249
246
250
247
* @param net_idx Network index to encrypt the message with.
@@ -256,10 +253,9 @@ int bt_mesh_brg_cfg_cli_bridging_table_remove(uint16_t net_idx, uint16_t addr, u
256
253
*
257
254
* @return 0 on success, or (negative) error code on failure.
258
255
*/
259
- int bt_mesh_brg_cfg_cli_bridged_subnets_get (uint16_t net_idx , uint16_t addr ,
260
- struct bt_mesh_filter_netkey filter_net_idx ,
261
- uint8_t start_idx ,
262
- struct bt_mesh_bridged_subnets_list * rsp );
256
+ int bt_mesh_brg_cfg_cli_subnets_get (uint16_t net_idx , uint16_t addr ,
257
+ struct bt_mesh_brg_cfg_filter_netkey filter_net_idx ,
258
+ uint8_t start_idx , struct bt_mesh_brg_cfg_subnets_list * rsp );
263
259
264
260
/** @brief Sends a Bridging Table Get message to the given destination address
265
261
* with the given parameters
@@ -276,10 +272,10 @@ int bt_mesh_brg_cfg_cli_bridged_subnets_get(uint16_t net_idx, uint16_t addr,
276
272
*
277
273
* When @c rsp is set, the user is responsible for providing a buffer for the
278
274
* filtered set of N pairs of NetKey Indexes in
279
- * @ref bt_mesh_bridging_table_list ::list. If a buffer is not provided, the
280
- * bridged addresses won't be copied. If a buffer size is shorter than received
281
- * list, only those many entries that fit in the buffer will be copied from the
282
- * list, and rest will be discarded.
275
+ * @ref bt_mesh_brg_cfg_table_list ::list. If a buffer is not provided,
276
+ * the bridged addresses won't be copied. If a buffer size is shorter than
277
+ * received list, only those many entries that fit in the buffer will be copied
278
+ * from the list, and rest will be discarded.
283
279
*
284
280
* @param net_idx Network index to encrypt the message with.
285
281
* @param addr Target node address.
@@ -291,9 +287,9 @@ int bt_mesh_brg_cfg_cli_bridged_subnets_get(uint16_t net_idx, uint16_t addr,
291
287
*
292
288
* @return 0 on success, or (negative) error code on failure.
293
289
*/
294
- int bt_mesh_brg_cfg_cli_bridging_table_get (uint16_t net_idx , uint16_t addr , uint16_t net_idx1 ,
295
- uint16_t net_idx2 , uint16_t start_idx ,
296
- struct bt_mesh_bridging_table_list * rsp );
290
+ int bt_mesh_brg_cfg_cli_table_get (uint16_t net_idx , uint16_t addr , uint16_t net_idx1 ,
291
+ uint16_t net_idx2 , uint16_t start_idx ,
292
+ struct bt_mesh_brg_cfg_table_list * rsp );
297
293
298
294
/** @brief Get the current transmission timeout value.
299
295
*
0 commit comments