From d4be0fd10488646875acf253166503f2bdfb8263 Mon Sep 17 00:00:00 2001 From: jfm92 Date: Mon, 13 Nov 2023 10:14:55 +0100 Subject: Adding extern C to definitions to allow link on C++ project --- lib/networking/dnserver.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/networking/dnserver.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 -- cgit v1.3.1