summaryrefslogtreecommitdiff
path: root/include/net-common.h
diff options
context:
space:
mode:
authorAdriano Cordova <adrianox@gmail.com>2024-11-11 18:08:57 -0300
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-11-16 21:35:05 +0100
commit1de93fda99f800aa1919268035fa2dd0e5109610 (patch)
treec855d1e123c6567b1faecc3960956d2903c56596 /include/net-common.h
parent408af976742e6ffedf48fa42792955a633e357ed (diff)
net: wget: Add interface to issue wget_requests using wget_http_info
Declare and define a global default struct wget_http_info and an interface to issue wget requests providing a custom struct wget_http_info. This code is common to legacy wget and lwip wget. The idea is that the command wget should use the default wget_http_info and other internal u-boot code can call wget_request with their own wget_http_info struct. Signed-off-by: Adriano Cordova <adrianox@gmail.com>
Diffstat (limited to 'include/net-common.h')
-rw-r--r--include/net-common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h
index 8985b81c2d2..1efb0db9ff5 100644
--- a/include/net-common.h
+++ b/include/net-common.h
@@ -554,4 +554,8 @@ struct wget_http_info {
char *headers;
};
+extern struct wget_http_info default_wget_info;
+extern struct wget_http_info *wget_info;
+int wget_request(ulong dst_addr, char *uri, struct wget_http_info *info);
+
#endif /* __NET_COMMON_H__ */