Files
snapclient/components/network_interface/include/network_interface.h
Karl Osterseher 1d7dc2dc00 fuse wifi and ethernet component to a sngle network component.
enable both interfaces if configured from menuconfig

Signed-off-by: Karl Osterseher <karli_o@gmx.at>
2025-01-22 23:37:00 +01:00

22 lines
510 B
C

/*
* network_interface.h
*
* Created on: Jan 22, 2025
* Author: karl
*/
#ifndef COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
#define COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
#include <stdbool.h>
#include "esp_netif.h"
#define NETWORK_INTERFACE_DESC_STA "sta"
#define NETWORK_INTERFACE_DESC_ETH "eth"
bool network_is_our_netif(const char *prefix, esp_netif_t *netif);
void network_init(void);
#endif /* COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_ */