net: wget: Add interface to issue wget_requests using wget_http_info
authorAdriano Cordova <adrianox@gmail.com>
Mon, 11 Nov 2024 21:08:57 +0000 (18:08 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Nov 2024 20:35:05 +0000 (21:35 +0100)
commit1de93fda99f800aa1919268035fa2dd0e5109610
treec855d1e123c6567b1faecc3960956d2903c56596
parent408af976742e6ffedf48fa42792955a633e357ed
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>
include/net-common.h
net/net-common.c