aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dynui.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-06-20 16:21:28 -0700
committerMichael Brown <mcb30@ipxe.org>2024-06-20 16:24:38 -0700
commit1c3c5e2b22ca31bbf77c39aef51671d0b6e95767 (patch)
tree822160fed4bc9e189bbbc70087c3e43e1b3098c6 /src/include/ipxe/dynui.h
parent039019039e89aedf4c5a0d81c351638a1e036335 (diff)
downloadipxe-1c3c5e2b22ca31bbf77c39aef51671d0b6e95767.tar.gz
[dynui] Add concept of a secret user interface item
For interactive forms, the concept of a secret value becomes meaningful (e.g. for password fields). Add a flag to indicate that an item represents a secret value, and allow this flag to be set via the "--secret" option of the "item" command. This flag has no meaning for menu items, but is silently accepted anyway to keep the code size minimal. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dynui.h')
-rw-r--r--src/include/ipxe/dynui.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/ipxe/dynui.h b/src/include/ipxe/dynui.h
index 5ba007032..5029e5850 100644
--- a/src/include/ipxe/dynui.h
+++ b/src/include/ipxe/dynui.h
@@ -44,6 +44,9 @@ struct dynamic_item {
/** Dynamic user interface item is default selection */
#define DYNUI_DEFAULT 0x0001
+/** Dynamic user interface item represents a secret */
+#define DYNUI_SECRET 0x0002
+
extern struct dynamic_ui * create_dynui ( const char *name, const char *title );
extern struct dynamic_item * add_dynui_item ( struct dynamic_ui *dynui,
const char *name,