commit | c2a1e9e476a15dcfafa1f95357653e2becacd059 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Tue Oct 29 17:47:16 2024 +0800 |
committer | Tom Rini <trini@konsulko.com> | Mon Nov 04 16:41:38 2024 -0600 |
tree | a7b72bad51f44e7bbd2d58f96f44d63660d9f30e | |
parent | 744a0a2367c7c63f5dc1f534fcab69511f6fa398 [diff] |
menu: add support to check if menu needs to be reprinted This patch adds a new callback named need_reprint for menu. The need_reprint will be called before printing the menu. If the callback exists and returns FALSE, menu printing will be canceled. This is very useful if the menu was not changed. It can save time for serial-based menu to handle more input data. Reviewed-by: Daniel Golle <daniel@makrotopia.org> Tested-by: Daniel Golle <daniel@makrotopia.org>