From 41af7457a8c731ed358f70ae3c78983893ae84ad Mon Sep 17 00:00:00 2001 From: Marty Connor Date: Wed, 9 Aug 2006 02:30:35 +0000 Subject: Merge of Fredrik Hultin command_line --- src/include/command.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/include/command.h (limited to 'src/include/command.h') diff --git a/src/include/command.h b/src/include/command.h new file mode 100644 index 000000000..113ca2f0a --- /dev/null +++ b/src/include/command.h @@ -0,0 +1,15 @@ +#ifndef COMMAND_H +#define COMMAND_H + +#include + +struct command { + const char *name; // The name of the command + const char *usage; // Description of how to use the command + const char *desc; // Short description of the command + int ( *exec ) ( int argc, char **argv); // The command function to call +}; + +#define __command __table ( commands, 01 ) +#endif + -- cgit v1.2.3-55-g7522