X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/6982ac2612c12af9fa65437bf4279007d734cc59..7fe9b0b742d7dae9c5af1d292d11840b5c3cbfae:/client/cmdparser.h?ds=sidebyside diff --git a/client/cmdparser.h b/client/cmdparser.h new file mode 100644 index 00000000..706ee988 --- /dev/null +++ b/client/cmdparser.h @@ -0,0 +1,19 @@ +#ifndef CMDPARSER_H__ +#define CMDPARSER_H__ + +typedef struct command_s +{ + const char * Name; + int (*Parse)(const char *Cmd); + int Offline; + const char * Help; +} command_t; + +// command_t array are expected to be NULL terminated + +// Print help for each command in the command array +void CmdsHelp(const command_t Commands[]); +// Parse a command line +void CmdsParse(const command_t Commands[], const char *Cmd); + +#endif \ No newline at end of file