masc2008 commented on code in PR #3451: URL: https://github.com/apache/nuttx-apps/pull/3451#discussion_r3068968365
########## include/netutils/ntpclient.h: ########## @@ -119,6 +119,21 @@ int ntpc_start_with_list(FAR const char *ntp_server_list); int ntpc_start(void); +/**************************************************************************** + * Name: ntpc_set_dhcp_servers + * + * Description: + * Update the DHCP-provided NTP server list. The list should contain + * semicolon-separated hostnames or addresses. Passing NULL or an empty + * string clears the DHCP-provided server list. + * + * Returned Value: + * Zero on success; a negated errno value on failure. + * + ****************************************************************************/ + +int ntpc_set_dhcp_servers(FAR const char *ntp_server_list); Review Comment: good idea, your proposal is better than mine. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
