1 // Copyright 2020 Espressif Systems (Shanghai) CO LTD 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 #include <stdio.h> 16 #include <string.h> 17 #include <pthread.h> 18 #include <stdlib.h> 19 #include <unistd.h> 20 #include "esp32_mock.h" 21 22 typedef struct esp_netif_s esp_netif_t; 23 typedef struct esp_netif_ip_info esp_netif_ip_info_t; 24 typedef struct esp_netif_dhcp_status esp_netif_dhcp_status_t; 25 26 27 const char * IP_EVENT = "IP_EVENT"; 28 29 esp_netif_add_to_list(esp_netif_t * netif)30esp_err_t esp_netif_add_to_list(esp_netif_t *netif) 31 { 32 return ESP_OK; 33 } 34 esp_netif_remove_from_list(esp_netif_t * netif)35esp_err_t esp_netif_remove_from_list(esp_netif_t *netif) 36 { 37 return ESP_ERR_NOT_FOUND; 38 } 39 esp_netif_next(esp_netif_t * netif)40esp_netif_t* esp_netif_next(esp_netif_t* netif) 41 { 42 return NULL; 43 } 44 esp_netif_next_unsafe(esp_netif_t * netif)45esp_netif_t* esp_netif_next_unsafe(esp_netif_t* netif) 46 { 47 return NULL; 48 } 49 esp_netif_get_handle_from_ifkey(const char * if_key)50esp_netif_t *esp_netif_get_handle_from_ifkey(const char *if_key) 51 { 52 return NULL; 53 } 54 esp_netif_get_ip_info(esp_netif_t * esp_netif,esp_netif_ip_info_t * ip_info)55esp_err_t esp_netif_get_ip_info(esp_netif_t *esp_netif, esp_netif_ip_info_t *ip_info) 56 { 57 return ESP_ERR_NOT_SUPPORTED; 58 } 59 esp_netif_dhcpc_get_status(esp_netif_t * esp_netif,esp_netif_dhcp_status_t * status)60esp_err_t esp_netif_dhcpc_get_status(esp_netif_t *esp_netif, esp_netif_dhcp_status_t *status) 61 { 62 return ESP_ERR_NOT_SUPPORTED; 63 } 64