Skip to content

Commit c02879b

Browse files
committed
fix(compat): Temporarily add esp_interface.h
This header is needed to support the state when GitHub HEAD still uses it, but GitLab HEAD (a few commits ahead) already removed it
1 parent 7a3b61c commit c02879b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// This has been added for backward compat to support builds if IDF-v6.0
8+
// on both GitHub and GitLab master. It will be removed after esp_wifi API
9+
// stabilizes on the master branch
10+
#ifndef __ESP_INTERFACE_H__
11+
#define __ESP_INTERFACE_H__
12+
13+
#include <stdint.h>
14+
15+
#ifdef __cplusplus
16+
extern "C" {
17+
#endif
18+
19+
typedef enum {
20+
ESP_IF_WIFI_STA = 0, /**< Station interface */
21+
ESP_IF_WIFI_AP, /**< Soft-AP interface */
22+
ESP_IF_WIFI_NAN, /**< NAN interface */
23+
ESP_IF_ETH, /**< Ethernet interface */
24+
ESP_IF_MAX
25+
} esp_interface_t;
26+
27+
#ifdef __cplusplus
28+
}
29+
#endif
30+
31+
32+
#endif /* __ESP_INTERFACE_TYPES_H__ */

0 commit comments

Comments
 (0)