esp_netif/tcpip_adapter: declare functions extern "C"

Merges https://github.com/espressif/esp-idf/pull/4408
This commit is contained in:
Thomas Schaub
2019-11-27 00:20:41 +01:00
committed by David Cermak
parent ac47c74ec4
commit f21107d12d
3 changed files with 25 additions and 0 deletions

View File

@@ -23,6 +23,10 @@
#include "tcpip_adapter_types.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief tcpip adapter legacy init. It is used only to set the compatibility mode of esp-netif, which
* will enable backward compatibility of esp-netif.
@@ -245,4 +249,8 @@ esp_err_t tcpip_adapter_get_hostname(tcpip_adapter_if_t tcpip_if, const char **h
*/
esp_err_t tcpip_adapter_set_default_wifi_handlers(void);
#ifdef __cplusplus
} // extern "C"
#endif
#endif //_TCPIP_ADAPTER_H_