]> git.ozlabs.org Git - petitboot/commit
ui/ncurses/nc-widgets: Add initial textbox validation functions
authorJeremy Kerr <jk@ozlabs.org>
Wed, 18 Dec 2013 05:05:01 +0000 (13:05 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 18 Dec 2013 05:43:49 +0000 (13:43 +0800)
commit90cc2a11507462e9c40f2494165741561729bdfb
treec92ad1aaa800a5b7135ded08ca008a97658f8aa4
parentb2ba8efeb3ea00a9b404f403549caa692fe34cc7
ui/ncurses/nc-widgets: Add initial textbox validation functions

We'd like to do some validation of the system configuration parameters,
so add a few validation types to the widget code. We currently need
integer, ipv4 address and multiple ipv4 address types. These are
implemented as small wrappers around the ncurses form validator code.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-widgets.c
ui/ncurses/nc-widgets.h