forked from espressif/esp-idf
Merge branch 'bugfix/fix_cplusplus_miss_in_dhcp_v4.1' into 'release/v4.1'
dhcpserver: support cplusplus (backport v4.1) See merge request espressif/esp-idf!15361
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
#include "sdkconfig.h"
|
#include "sdkconfig.h"
|
||||||
#include "lwip/ip_addr.h"
|
#include "lwip/ip_addr.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct dhcps_state{
|
typedef struct dhcps_state{
|
||||||
s16_t state;
|
s16_t state;
|
||||||
} dhcps_state;
|
} dhcps_state;
|
||||||
@@ -91,5 +95,8 @@ void dhcps_dns_setserver(const ip_addr_t *dnsserver);
|
|||||||
ip4_addr_t dhcps_dns_getserver(void);
|
ip4_addr_t dhcps_dns_getserver(void);
|
||||||
void dhcps_set_new_lease_cb(dhcps_cb_t cb);
|
void dhcps_set_new_lease_cb(dhcps_cb_t cb);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* __DHCPS_H__ */
|
||||||
|
@@ -13,6 +13,9 @@
|
|||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
/** DHCP Options
|
/** DHCP Options
|
||||||
|
|
||||||
This macros are not part of the public dhcpserver.h interface.
|
This macros are not part of the public dhcpserver.h interface.
|
||||||
@@ -132,3 +135,7 @@ typedef enum
|
|||||||
DOMAIN_SEARCH = 119,
|
DOMAIN_SEARCH = 119,
|
||||||
CLASSLESS_ROUTE = 121,
|
CLASSLESS_ROUTE = 121,
|
||||||
} dhcp_msg_option;
|
} dhcp_msg_option;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user