diff options
| author | Michael Brown | 2024-06-14 12:51:57 +0200 |
|---|---|---|
| committer | Michael Brown | 2024-06-19 00:08:01 +0200 |
| commit | bf98eae5daeb0b9281562e70fdf3768a629adde8 (patch) | |
| tree | d08af83aae2db43e507eac1d526e99d1642a5b6d /src/include | |
| parent | [hci] Draw all widgets on the standard screen (diff) | |
| download | ipxe-bf98eae5daeb0b9281562e70fdf3768a629adde8.tar.gz ipxe-bf98eae5daeb0b9281562e70fdf3768a629adde8.tar.xz ipxe-bf98eae5daeb0b9281562e70fdf3768a629adde8.zip | |
[hci] Split out msg() and alert() from settings UI code
The msg() and alert() functions currently defined in settings_ui.c
provide a general-purpose facility for printing messages centred on
the screen.
Split this out to a separate file to allow for reuse by the form
presentation code.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/ipxe/message.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/ipxe/message.h b/src/include/ipxe/message.h new file mode 100644 index 000000000..e2e783740 --- /dev/null +++ b/src/include/ipxe/message.h @@ -0,0 +1,16 @@ +#ifndef _IPXE_MESSAGE_H +#define _IPXE_MESSAGE_H + +/** @file + * + * Message printing + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +extern void msg ( unsigned int row, const char *fmt, ... ); +extern void clearmsg ( unsigned int row ); +extern void alert ( unsigned int row, const char *fmt, ... ); + +#endif /* _IPXE_MESSAGE_H */ |
