@@ -42,8 +42,8 @@ struct bt_mesh_brg_cfg_cli_cb {
4242 * @param addr Address of the sender.
4343 * @param status Status received from the server.
4444 */
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 );
4747
4848 /** @brief Optional callback for Bridging Table Size Status message.
4949 *
@@ -54,8 +54,7 @@ struct bt_mesh_brg_cfg_cli_cb {
5454 * @param addr Address of the sender.
5555 * @param size Size received from the server.
5656 */
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 );
5958
6059 /** @brief Optional callback for Bridging Table Status message.
6160 *
@@ -66,8 +65,8 @@ struct bt_mesh_brg_cfg_cli_cb {
6665 * @param addr Address of the sender.
6766 * @param rsp Response received from the Bridging Configuration Server.
6867 */
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 );
7170
7271 /** @brief Optional callback for Bridged Subnets List message.
7372 *
@@ -78,8 +77,8 @@ struct bt_mesh_brg_cfg_cli_cb {
7877 * @param addr Address of the sender.
7978 * @param rsp Response received from the Bridging Configuration Server.
8079 */
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 );
8382
8483 /** @brief Optional callback for Bridging Table List message.
8584 *
@@ -90,8 +89,8 @@ struct bt_mesh_brg_cfg_cli_cb {
9089 * @param addr Address of the sender.
9190 * @param rsp Response received from the Bridging Configuration Server.
9291 */
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 );
9594};
9695
9796/** Bridge Configuration Client Model Context */
@@ -121,13 +120,12 @@ struct bt_mesh_brg_cfg_cli {
121120 * @param net_idx Network index to encrypt the message with.
122121 * @param addr Target node address.
123122 * @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.
126125 *
127126 * @return 0 on success, or (negative) error code on failure.
128127 */
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 );
131129
132130/** @brief Sends a Subnet Bridge Set message to the given destination address
133131 * with the given parameters
@@ -145,17 +143,16 @@ int bt_mesh_brg_cfg_cli_subnet_bridge_get(uint16_t net_idx, uint16_t addr,
145143 * @param net_idx Network index to encrypt the message with.
146144 * @param addr Target node address.
147145 * @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 .
150148 * @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.
153151 *
154152 * @return 0 on success, or (negative) error code on failure.
155153 */
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 );
159156
160157/** @brief Sends a Bridging Table Size Get message to the given destination
161158 * 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,
176173 *
177174 * @return 0 on success, or (negative) error code on failure.
178175 */
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 );
180177
181178/** @brief Sends a Bridging Table Add message to the given destination address
182179 * 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,
198195 *
199196 * @return 0 on success, or (negative) error code on failure.
200197 */
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 );
204201
205202/** @brief Sends a Bridging Table Remove message to the given destination
206203 * 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,
226223 *
227224 * @return 0 on success, or (negative) error code on failure.
228225 */
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 );
232229
233230/** @brief Sends a Bridged Subnets Get message to the given destination address
234231 * 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
244241 *
245242 * When @c rsp is set, the user is responsible for providing a buffer for the
246243 * 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
248245 * bridged subnets won't be copied.
249246
250247 * @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
256253 *
257254 * @return 0 on success, or (negative) error code on failure.
258255 */
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 );
263259
264260/** @brief Sends a Bridging Table Get message to the given destination address
265261 * with the given parameters
@@ -276,10 +272,10 @@ int bt_mesh_brg_cfg_cli_bridged_subnets_get(uint16_t net_idx, uint16_t addr,
276272 *
277273 * When @c rsp is set, the user is responsible for providing a buffer for the
278274 * 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.
283279 *
284280 * @param net_idx Network index to encrypt the message with.
285281 * @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,
291287 *
292288 * @return 0 on success, or (negative) error code on failure.
293289 */
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 );
297293
298294/** @brief Get the current transmission timeout value.
299295 *
0 commit comments