diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-14 11:51:57 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-18 15:08:01 -0700 |
commit | bf98eae5daeb0b9281562e70fdf3768a629adde8 (patch) | |
tree | d08af83aae2db43e507eac1d526e99d1642a5b6d /src/include/ipxe/message.h | |
parent | bb4a10696fb6541fdcfc2c057cf698de37fa5eba (diff) | |
download | ipxe-bf98eae5daeb0b9281562e70fdf3768a629adde8.tar.gz |
[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/ipxe/message.h')
-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 */ |