af_inet.h 717 字节
Newer Older
1
/*
2
 * Copyright (c) 2006-2018, RT-Thread Development Team
3
 *
4
 * SPDX-License-Identifier: Apache-2.0
5 6 7 8 9 10 11 12 13 14 15
 *
 * Change Logs:
 * Date           Author       Notes
 * 2018-08-25     ChenYong     First version
 */

#ifndef __AF_INET_H__
#define __AF_INET_H__

#include <rtthread.h>

16 17 18 19
#ifdef __cplusplus
extern "C" {
#endif

20
#ifdef SAL_USING_LWIP
21 22 23 24 25

/* Set lwIP network interface device protocol family information  */
int sal_lwip_netdev_set_pf_info(struct netdev *netdev);

#endif /* SAL_USING_LWIP */
26 27

#ifdef SAL_USING_AT
28 29 30 31 32

/* Set AT network interface device protocol family information */
int sal_at_netdev_set_pf_info(struct netdev *netdev);

#endif /* SAL_USING_AT */
33

34 35 36 37
#ifdef __cplusplus
}
#endif

38
#endif /* __AF_INET_H__ */