af_inet.h 717 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-08-25 ChenYong First version
  9. */
  10. #ifndef __AF_INET_H__
  11. #define __AF_INET_H__
  12. #include <rtthread.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. #ifdef SAL_USING_LWIP
  17. /* Set lwIP network interface device protocol family information */
  18. int sal_lwip_netdev_set_pf_info(struct netdev *netdev);
  19. #endif /* SAL_USING_LWIP */
  20. #ifdef SAL_USING_AT
  21. /* Set AT network interface device protocol family information */
  22. int sal_at_netdev_set_pf_info(struct netdev *netdev);
  23. #endif /* SAL_USING_AT */
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif /* __AF_INET_H__ */