mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
Make net.h a wrapper which includes net-common.h and either net-legacy.h or net-lwip.h based on NET_LWIP. The function copy_filename() can be useful when NET_LWIP is enabled, therefore move it out of net/net.c which is built only when networking choice is NET and create a new file net/net-common.c. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
15 lines
370 B
C
15 lines
370 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
#ifndef __NET_LWIP_H__
|
|
#define __NET_LWIP_H__
|
|
|
|
#include <lwip/ip4.h>
|
|
#include <lwip/netif.h>
|
|
|
|
struct netif *net_lwip_new_netif(struct udevice *udev);
|
|
struct netif *net_lwip_new_netif_noip(struct udevice *udev);
|
|
void net_lwip_remove_netif(struct netif *netif);
|
|
struct netif *net_lwip_get_netif(void);
|
|
|
|
#endif /* __NET_LWIP_H__ */
|