diff options
author | Tom Rini <trini@konsulko.com> | 2024-01-11 10:03:51 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-01-11 10:03:51 -0500 |
commit | d3dba8a28bb7f57a4558c944f9c329c467144633 (patch) | |
tree | 517ec69555b6f0f1dafd0f114ec67c7b9ddbcdf0 /include/console.h | |
parent | 7a59d520ef0bfd29b339cba5282149271d5ac3b2 (diff) | |
parent | 6c2f753f4ad3dcee60190949d1286736a6d51d17 (diff) |
Merge tag 'u-boot-dfu-20240111' of https://source.denx.de/u-boot/custodians/u-boot-dfu
u-boot-dfu-20240111
- Implement fastboot multi-response. This allows multi-line response and
most importantly, finally adds support for fastboot getvar all command.
- New 'fastboot oem console' command. Useful for debugging to send data
the u-boot shell via fastboot
- Console recording fixes
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index e29817e57b..2617e16007 100644 --- a/include/console.h +++ b/include/console.h @@ -85,6 +85,13 @@ int console_record_readline(char *str, int maxlen); int console_record_avail(void); /** + * console_record_isempty() - Returns if console output is empty + * + * Return: true if empty + */ +bool console_record_isempty(void); + +/** * console_in_puts() - Write a string to the console input buffer * * This writes the given string to the console_in buffer which will then be @@ -131,6 +138,12 @@ static inline int console_in_puts(const char *str) return 0; } +static inline bool console_record_isempty(void) +{ + /* Always empty */ + return true; +} + #endif /* !CONFIG_CONSOLE_RECORD */ /** |