[nrf fromtree] net: openthread: Depreciate openthread_set_state_changed_cb API
Will be replaced by APIs:
- openthread_state_changed_cb_register
- openthread_state_changed_cb_unregister
@@ -78,8 +78,9 @@ struct openthread_context {
* changes within OpenThread.
*
* @param cb function to call in callback procedure.
+ * @deprecated Use openthread_state_changed_cb_register() instead.
*/
-void openthread_set_state_changed_cb(otStateChangedCallback cb);
+__deprecated void openthread_set_state_changed_cb(otStateChangedCallback cb);
/**
* @brief Get OpenThread thread identification.
