]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Add plugin menu and nc-plugin screen
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 24 Jul 2017 05:58:50 +0000 (15:58 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 15 Aug 2017 03:38:17 +0000 (13:38 +1000)
commit5b3dd56d982629349e612b9e984e65dec09b438f
tree1a89bd6376fc58e45691a3c8b72b91c275602f7b
parentd90efe9e2bbfb18ee05ec2032b5723dbfa902d82
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 <sam@mendozajonas.com>
12 files changed:
ui/common/discover-client.c
ui/common/discover-client.h
ui/ncurses/Makefile.am
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h
ui/ncurses/nc-menu.c
ui/ncurses/nc-menu.h
ui/ncurses/nc-plugin-help.c [new file with mode: 0644]
ui/ncurses/nc-plugin-menu-help.c [new file with mode: 0644]
ui/ncurses/nc-plugin.c [new file with mode: 0644]
ui/ncurses/nc-plugin.h [new file with mode: 0644]
ui/ncurses/nc-scr.h