Bluetooth: mesh: Convert bluetooth mesh to using k_timeout struct

Convert bluetooth mesh to using k_timeout struct. Many of the mesh
modules uses timeout calculations, so it is most practical to keep
the s32_t type and only initialize a k_timeout_t struct when
calling the kernel.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2020-04-06 13:56:14 +02:00 committed by Johan Hedberg
commit 87d9eadf50
20 changed files with 120 additions and 122 deletions

View file

@ -93,7 +93,7 @@ struct prov_bearer {
*
* @return Zero on success, or (negative) error code otherwise.
*/
int (*link_open)(const u8_t uuid[16], s32_t timeout,
int (*link_open)(const u8_t uuid[16], k_timeout_t timeout,
const struct prov_bearer_cb *cb, void *cb_data);
/** @brief Close the current link.