X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=interactive.c;h=9460877e344e8f8452b0f0d20f1d6ceef83dd39e;hb=3aa0ca7de42df44d7b16a762d2ae823babf3661f;hp=288e9f3031f2890f73282a67ebd04be5bdffe142;hpb=d46cd1bca47e94e62ef558973a69761a729f298e;p=adu.git diff --git a/interactive.c b/interactive.c index 288e9f3..9460877 100644 --- a/interactive.c +++ b/interactive.c @@ -2,14 +2,24 @@ #include "adu.h" #include "format.h" -#include "select.h" +#include "user.h" #include "string.h" +#include "select.cmdline.h" +#include "select.h" #include "error.h" -#include "cmdline.h" +/** + * Describes one valid command for interactive mode. + * + * When invoked in interactive mode, adu reads commands from stdin. There's a + * static array of all such commands. + */ struct interactive_command { + /** The name of the command. */ const char *name; + /** Pointer to The function that is being executed. */ int (*handler)(char *); + /** Help text. */ const char *desc; };