mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 21:44:38 +08:00
dhcp: move declaration of "extern void dhcp_set_ntp_servers()" from dhcp.c to dhcp.h to make the function prototype known to implementers
This commit is contained in:
parent
11845cedd6
commit
fe195a86cd
@ -108,13 +108,6 @@
|
|||||||
|
|
||||||
#define REBOOT_TRIES 2
|
#define REBOOT_TRIES 2
|
||||||
|
|
||||||
#if LWIP_DHCP_GET_NTP_SRV
|
|
||||||
/** This function must exist, in other to add offered NTP servers to
|
|
||||||
* the NTP (or SNTP) engine.
|
|
||||||
* See LWIP_DHCP_MAX_NTP_SERVERS */
|
|
||||||
extern void dhcp_set_ntp_servers(u8_t num_ntp_servers, const ip4_addr_t* ntp_server_addrs);
|
|
||||||
#endif /* LWIP_DHCP_GET_NTP_SRV */
|
|
||||||
|
|
||||||
/** Option handling: options are parsed in dhcp_parse_reply
|
/** Option handling: options are parsed in dhcp_parse_reply
|
||||||
* and saved in an array where other functions can load them from.
|
* and saved in an array where other functions can load them from.
|
||||||
* This might be moved into the struct dhcp (not necessarily since
|
* This might be moved into the struct dhcp (not necessarily since
|
||||||
|
@ -236,6 +236,13 @@ void dhcp_fine_tmr(void);
|
|||||||
#define DHCP_OVERLOAD_SNAME 2
|
#define DHCP_OVERLOAD_SNAME 2
|
||||||
#define DHCP_OVERLOAD_SNAME_FILE 3
|
#define DHCP_OVERLOAD_SNAME_FILE 3
|
||||||
|
|
||||||
|
#if LWIP_DHCP_GET_NTP_SRV
|
||||||
|
/** This function must exist, in other to add offered NTP servers to
|
||||||
|
* the NTP (or SNTP) engine.
|
||||||
|
* See LWIP_DHCP_MAX_NTP_SERVERS */
|
||||||
|
extern void dhcp_set_ntp_servers(u8_t num_ntp_servers, const ip4_addr_t* ntp_server_addrs);
|
||||||
|
#endif /* LWIP_DHCP_GET_NTP_SRV */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user