X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=interactive.c;fp=interactive.c;h=b3254157d6785403573252876624c026ed912ed4;hp=288e9f3031f2890f73282a67ebd04be5bdffe142;hb=9e41a10fbee567866d78903b11646d341cfd9882;hpb=4bf331e3a69b3a6b9b1872f999d43be292ccd2e9 diff --git a/interactive.c b/interactive.c index 288e9f3..b325415 100644 --- a/interactive.c +++ b/interactive.c @@ -7,9 +7,18 @@ #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; };