From 5b3dd56d982629349e612b9e984e65dec09b438f Mon Sep 17 00:00:00 2001 From: Samuel Mendoza-Jonas Date: Mon, 24 Jul 2017 15:58:50 +1000 Subject: ui/ncurses: Add plugin menu and nc-plugin screen Add a second pmenu accessible via the main menu which displays uninstalled and installed pb-plugins. Uninstalled options can be selected to trigger pb-plugin to install them, after which they are updated and marked as installed in the menu. Installed plugins can be investigated by entering the new plugin screen, where plugin metadata and executables are displayed. Executables can be run from this screen via cui_run_cmd(). Signed-off-by: Samuel Mendoza-Jonas --- ui/ncurses/nc-menu.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/ncurses/nc-menu.h') diff --git a/ui/ncurses/nc-menu.h b/ui/ncurses/nc-menu.h index 136bf66..54f83af 100644 --- a/ui/ncurses/nc-menu.h +++ b/ui/ncurses/nc-menu.h @@ -53,6 +53,7 @@ struct pmenu_item { int (*on_execute)(struct pmenu_item *item); }; +int pmenu_item_update(struct pmenu_item *item, const char *name); struct pmenu_item *pmenu_item_create(struct pmenu *menu, const char *name); struct pmenu_item *pmenu_find_device(struct pmenu *menu, struct device *dev, struct boot_option *opt); -- cgit v1.2.1