diff options
| author | Ha Thach <[email protected]> | 2023-11-24 11:33:34 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-24 11:33:34 +0700 |
| commit | 0601d174b1eaf7a9bfe646ee6595016e58d67ea4 (patch) | |
| tree | 849056bbdedc9b440468437304e4591543e87142 /lib/networking | |
| parent | ce627f431831e1fbaa3bb7bad35a489b8006b749 (diff) | |
| parent | d6b8b3515df4bb83b6038bd60260771e65af8de7 (diff) | |
Merge branch 'master' into feature/ch32f20x
Diffstat (limited to 'lib/networking')
| -rw-r--r-- | lib/networking/dhserver.h | 6 | ||||
| -rw-r--r-- | lib/networking/dnserver.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/networking/dhserver.h b/lib/networking/dhserver.h index b3642459a..b0d57ac4e 100644 --- a/lib/networking/dhserver.h +++ b/lib/networking/dhserver.h @@ -56,7 +56,13 @@ typedef struct dhcp_config dhcp_entry_t *entries; } dhcp_config_t; +#ifdef __cplusplus +extern "C" { +#endif err_t dhserv_init(const dhcp_config_t *config); void dhserv_free(void); +#ifdef __cplusplus +} +#endif #endif /* DHSERVER_H */ diff --git a/lib/networking/dnserver.h b/lib/networking/dnserver.h index 50b29be89..a7a7f9acb 100644 --- a/lib/networking/dnserver.h +++ b/lib/networking/dnserver.h @@ -41,7 +41,13 @@ typedef bool (*dns_query_proc_t)(const char *name, ip4_addr_t *addr); +#ifdef __cplusplus +extern "C" { +#endif err_t dnserv_init(const ip_addr_t *bind, uint16_t port, dns_query_proc_t query_proc); void dnserv_free(void); +#ifdef __cplusplus +} +#endif #endif |
