* This function will set callback to be called when the network interface device status has been changed. * * @param netdev the network interface device to change * @param status_callback the callback be called when the status has been changed. */
| 845 | * @param status_callback the callback be called when the status has been changed. |
| 846 | */ |
| 847 | void netdev_set_status_callback(struct netdev *netdev, netdev_callback_fn status_callback) |
| 848 | { |
| 849 | RT_ASSERT(netdev); |
| 850 | RT_ASSERT(status_callback); |
| 851 | |
| 852 | netdev->status_callback = status_callback; |
| 853 | } |
| 854 | |
| 855 | /** |
| 856 | * This function will set callback to be called when the network interface device address has been changed. |
no outgoing calls