diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-10-24 14:02:49 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-11-14 13:23:52 +1100 |
commit | 663197d945b6e393c1237c6b2b25f11567a449d7 (patch) | |
tree | bcea9455c08af8c88720ed919da6793f9c5c3003 /ui/ncurses/nc-cui.c | |
parent | c577cbee1e32fa85ba05698aa4ce298e1ebac3ed (diff) | |
download | petitboot-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.c | 5 |
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, |