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:
David Čermák
2021-01-13 10:28:34 +08:00
committed by suren-gabrielyan-espressif
parent 89439e0a9b
commit 2cf9fd8891

View File

@ -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)