summaryrefslogtreecommitdiff
path: root/lib/networking/dnserver.h
diff options
context:
space:
mode:
authorjfm92 <[email protected]>2023-11-13 10:14:55 +0100
committerjfm92 <[email protected]>2023-11-13 10:14:55 +0100
commitd4be0fd10488646875acf253166503f2bdfb8263 (patch)
tree1bb731b435123ef60bb2865da07864ed80f5b506 /lib/networking/dnserver.h
parentf84eafcaa2138a360e0baf8271b28f45cf120961 (diff)
Adding extern C to definitions to allow link on C++ project
Diffstat (limited to 'lib/networking/dnserver.h')
-rw-r--r--lib/networking/dnserver.h6
1 files changed, 6 insertions, 0 deletions
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