summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-cui.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-24 14:02:49 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-11-14 13:23:52 +1100
commit663197d945b6e393c1237c6b2b25f11567a449d7 (patch)
treebcea9455c08af8c88720ed919da6793f9c5c3003 /ui/ncurses/nc-cui.c
parentc577cbee1e32fa85ba05698aa4ce298e1ebac3ed (diff)
downloadpetitboot-663197d945b6e393c1237c6b2b25f11567a449d7.zip
petitboot-663197d945b6e393c1237c6b2b25f11567a449d7.tar.gz
ui/ncurses: Parse configuration form & send to server
This change implements the configuration save action, when the user submits the nc-config form. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-cui.c')
-rw-r--r--ui/ncurses/nc-cui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c
index d74c1a4..93377bb 100644
--- a/ui/ncurses/nc-cui.c
+++ b/ui/ncurses/nc-cui.c
@@ -551,6 +551,11 @@ static void cui_update_config(struct config *config, void *arg)
cui->config = talloc_steal(cui, config);
}
+int cui_send_config(struct cui *cui, struct config *config)
+{
+ return discover_client_send_config(cui->client, config);
+}
+
static struct discover_client_ops cui_client_ops = {
.device_add = NULL,
.boot_option_add = cui_boot_option_add,
OpenPOWER on IntegriCloud