#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;
};