cmdline: big rework and clean of cmdline library
authorOlivier Matz <zer0@droids-corp.org>
Sat, 25 Dec 2010 18:36:01 +0000 (19:36 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 13 Mar 2011 10:09:19 +0000 (11:09 +0100)
commitf32d30f48ddfb55b86efd695e0dd144e9d15401e
tree440dbb3bf4cfb0b3718355e00e256caaaace7262
parentb1d5b169352e57df3fc14c51ffad4b83f3e5613f
cmdline: big rework and clean of cmdline library

The main change is that we use the same structure to define a token.
The old method (parse, complete_get_nb, complete_get_elt, get_help) is
deprecated. We now have (parse, complete_start, complete_iterate,
complete_end, help) that will allow to do more complex tokens, like
a file token with completion.

Signed-off-by: Olivier Matz <zer0@droids-corp.org>
26 files changed:
Makefile
TODO.txt
build/calculator_standalone/Makefile
src/calculator_server/commands.c
src/calculator_standalone/commands.c
src/extension_example/commands.c
src/extension_example/main.c
src/extension_example/parse_obj_list.c
src/extension_example/parse_obj_list.h
src/genconf/commands.c
src/genconf/parse_confnode.c
src/genconf/parse_confnode.h
src/lib/cmdline.c
src/lib/cmdline.h
src/lib/cmdline_parse.c
src/lib/cmdline_parse.h
src/lib/cmdline_parse_etheraddr.c
src/lib/cmdline_parse_etheraddr.h
src/lib/cmdline_parse_ipaddr.c
src/lib/cmdline_parse_ipaddr.h
src/lib/cmdline_parse_num.c
src/lib/cmdline_parse_num.h
src/lib/cmdline_parse_string.c
src/lib/cmdline_parse_string.h
src/lib/cmdline_rdline.c
src/lib/cmdline_rdline.h