summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-11-24 15:57:06 +0700
committerhathach <[email protected]>2023-11-24 15:57:06 +0700
commit5e54bd37b694542e3f719b9c3f151b8e7e26e86a (patch)
treebbbe59e6875ea1c088a1bdd0e0f048890c15ee47 /lib
parent8bac68db84ccbf4f9fbd0d6075b6a1b0253c081a (diff)
parentf03f60eae2894993373b48e2104bf02116bef1fa (diff)
Merge branch 'master' into bth
Diffstat (limited to 'lib')
-rw-r--r--lib/networking/dhserver.h6
-rw-r--r--lib/networking/dnserver.h6
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