diff options
| author | Jerome Forissier <[email protected]> | 2025-04-17 15:26:58 +0200 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-05-20 15:43:08 +0200 |
| commit | 9349fc2e9c76d042f424edfa69cf421225bf0fcc (patch) | |
| tree | 9fe71bea80e5e8b58cbef8ca0e95bfa15dffbb6e /include | |
| parent | cabe3952c2e684f0e4013ca9ed337f785ec3ec66 (diff) | |
net, net-lwip: wget: suppress console output when called by EFI
Functions called from EFI applications should not do console output.
Refactor the wget code to implement this requirement. The wget_http_info
struct is used to hold the boolean that signifies whether the output is
allowed or not.
Signed-off-by: Jerome Forissier <[email protected]>
Reported-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net-common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net-common.h b/include/net-common.h index e536968a92b..7853612b237 100644 --- a/include/net-common.h +++ b/include/net-common.h @@ -570,6 +570,7 @@ enum wget_http_method { * Filled by client. * @hdr_cont_len: content length according to headers. Filled by wget * @headers: buffer for headers. Filled by wget. + * @silent: do not print anything to the console. Filled by client. */ struct wget_http_info { enum wget_http_method method; @@ -580,6 +581,7 @@ struct wget_http_info { bool check_buffer_size; u32 hdr_cont_len; char *headers; + bool silent; }; extern struct wget_http_info default_wget_info; |
