45 #define DYNUI_DEFAULT 0x0001 48 #define DYNUI_SECRET 0x0002
A dynamic user interface item.
int show_menu(struct dynamic_ui *dynui, unsigned long timeout, const char *select, struct dynamic_item **selected)
Show menu.
struct dynamic_item * add_dynui_item(struct dynamic_ui *dynui, const char *name, const char *text, unsigned int flags, int shortcut)
Add dynamic user interface item.
void destroy_dynui(struct dynamic_ui *dynui)
Destroy dynamic user interface.
struct dynamic_ui * find_dynui(const char *name)
Find dynamic user interface.
unsigned int count
Number of user interface items.
struct dynamic_ui * create_dynui(const char *name, const char *title)
Create dynamic user interface.
A doubly-linked list entry (or list head)
struct dynamic_item * dynui_item(struct dynamic_ui *dynui, unsigned int index)
Find dynamic user interface item by index.
struct dynamic_item * dynui_shortcut(struct dynamic_ui *dynui, int key)
Find dynamic user interface item by shortcut key.
struct list_head items
Dynamic user interface items.
int select(fd_set *readfds, int wait)
Check file descriptors for readiness.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
int show_form(struct dynamic_ui *dynui)
Show form.
A dynamic user interface.
int shortcut
Shortcut key.
struct list_head list
List of dynamic user interfaces.
struct list_head list
List of dynamic user interface items.