mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
feat(openthread): move mesh local address judeging function to public
This commit is contained in:
@@ -76,6 +76,17 @@ esp_netif_t *esp_openthread_get_netif(void);
|
|||||||
*/
|
*/
|
||||||
void esp_openthread_register_meshcop_e_handler(esp_event_handler_t handler, bool for_publish);
|
void esp_openthread_register_meshcop_e_handler(esp_event_handler_t handler, bool for_publish);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function judges the target address is openthread mesh local or not.
|
||||||
|
*
|
||||||
|
* @param[in] address The address.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* - True if the address is openthread mesh local, otherwise false
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
bool is_openthread_internal_mesh_local_addr(const otIp6Address *address);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,17 +36,6 @@ void esp_openthread_netif_glue_update(esp_openthread_mainloop_context_t *mainloo
|
|||||||
*/
|
*/
|
||||||
esp_err_t esp_openthread_netif_glue_process(otInstance *instance, const esp_openthread_mainloop_context_t *mainloop);
|
esp_err_t esp_openthread_netif_glue_process(otInstance *instance, const esp_openthread_mainloop_context_t *mainloop);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This function judges the target address is openthread mesh local or not.
|
|
||||||
*
|
|
||||||
* @param[in] address The address.
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* - True if the address is openthread mesh local, otherwise false
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
bool is_openthread_internal_mesh_local_addr(const otIp6Address *address);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user