summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMasahisa Kojima <masahisa.kojima@linaro.org>2023-11-10 13:25:41 +0900
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2023-11-18 10:08:09 +0200
commitf01c961ee34c0124ce53020970ba11b0ab316d9e (patch)
tree38de0a4be61040fc610c4fa5eb93fb62fb70da6a /include
parentd7d07a8b508bb8af564f6de1ea763be0f67f2456 (diff)
downloadu-boot-f01c961ee34c0124ce53020970ba11b0ab316d9e.tar.gz
u-boot-f01c961ee34c0124ce53020970ba11b0ab316d9e.tar.bz2
u-boot-f01c961ee34c0124ce53020970ba11b0ab316d9e.zip
cmd: efidebug: add uri device path
This adds the URI device path option for 'boot add' subcommand. User can add the URI load option for downloading ISO image file or EFI application through network. Currently HTTP is only supported. Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/net.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 61f9018769..ac511eab10 100644
--- a/include/net.h
+++ b/include/net.h
@@ -939,4 +939,12 @@ static inline void eth_set_enable_bootdevs(bool enable) {}
*/
int wget_with_dns(ulong dst_addr, char *uri);
+/**
+ * wget_validate_uri() - varidate the uri
+ *
+ * @uri: uri string of target file of wget
+ * Return: true if uri is valid, false if uri is invalid
+ */
+bool wget_validate_uri(char *uri);
+
#endif /* __NET_H__ */