mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-10 21:44:24 +00:00
Merge pull request #2314 from jfm92/master
Adding extern C to definitions to allow link on C++ project
This commit is contained in:
commit
a6b29ae57c
@ -56,7 +56,13 @@ typedef struct dhcp_config
|
|||||||
dhcp_entry_t *entries;
|
dhcp_entry_t *entries;
|
||||||
} dhcp_config_t;
|
} dhcp_config_t;
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
err_t dhserv_init(const dhcp_config_t *config);
|
err_t dhserv_init(const dhcp_config_t *config);
|
||||||
void dhserv_free(void);
|
void dhserv_free(void);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* DHSERVER_H */
|
#endif /* DHSERVER_H */
|
||||||
|
@ -41,7 +41,13 @@
|
|||||||
|
|
||||||
typedef bool (*dns_query_proc_t)(const char *name, ip4_addr_t *addr);
|
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);
|
err_t dnserv_init(const ip_addr_t *bind, uint16_t port, dns_query_proc_t query_proc);
|
||||||
void dnserv_free(void);
|
void dnserv_free(void);
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user