mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-23 07:17:29 +02:00
lwip: Moved default SNTP API to esp_sntp.h
and make sntp.h in port folders of lwip component obsoleted * Original commit: espressif/esp-idf@76f6dd6214
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
89439e0a9b
commit
2cf9fd8891
@ -11,8 +11,13 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
#include "esp32_compat.h"
|
||||
|
||||
#include "esp_netif_lwip_internal.h"
|
||||
// mock the types to decouple from lwip
|
||||
typedef void * esp_netif_t;
|
||||
typedef enum { DHCP_MOCK } esp_netif_dhcp_status_t;
|
||||
typedef tcpip_adapter_ip_info_t esp_netif_ip_info_t;
|
||||
typedef ip6_addr_t esp_ip6_addr_t;
|
||||
|
||||
esp_err_t esp_netif_get_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info)
|
||||
{
|
||||
@ -26,7 +31,7 @@ esp_err_t esp_netif_dhcpc_get_status(esp_netif_t *esp_netif, esp_netif_dhcp_stat
|
||||
|
||||
const char *esp_netif_get_ifkey(esp_netif_t *esp_netif)
|
||||
{
|
||||
return esp_netif->if_key;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
esp_err_t esp_netif_get_ip6_linklocal(esp_netif_t *esp_netif, esp_ip6_addr_t *if_ip6)
|
||||
|
Reference in New Issue
Block a user