]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdparser.h
Client cleanup and restructuring. Stage 1...
[proxmark3-svn] / client / cmdparser.h
diff --git a/client/cmdparser.h b/client/cmdparser.h
new file mode 100644 (file)
index 0000000..706ee98
--- /dev/null
@@ -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
Impressum, Datenschutz