diff options
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h index e63a946002..61f9018769 100644 --- a/include/net.h +++ b/include/net.h @@ -930,4 +930,13 @@ void eth_set_enable_bootdevs(bool enable); static inline void eth_set_enable_bootdevs(bool enable) {} #endif +/** + * wget_with_dns() - runs dns host IP address resulution before wget + * + * @dst_addr: destination address to download the file + * @uri: uri string of target file of wget + * Return: downloaded file size, negative if failed + */ +int wget_with_dns(ulong dst_addr, char *uri); + #endif /* __NET_H__ */ |