]> cvs.zerfleddert.de Git - proxmark3-svn/blame - client/cmdparser.h
ADD: "analyse hid" - new function that implements the 'heart of darkness' hid/iclas...
[proxmark3-svn] / client / cmdparser.h
CommitLineData
a553f267 1//-----------------------------------------------------------------------------
2// Copyright (C) 2010 iZsh <izsh at fail0verflow.com>
3//
4// This code is licensed to you under the terms of the GNU GPL, version 2 or,
5// at your option, any later version. See the LICENSE.txt file for the text of
6// the license.
7//-----------------------------------------------------------------------------
8// Command parser
9//-----------------------------------------------------------------------------
10
7fe9b0b7 11#ifndef CMDPARSER_H__
12#define CMDPARSER_H__
13
14typedef struct command_s
15{
16 const char * Name;
17 int (*Parse)(const char *Cmd);
18 int Offline;
19 const char * Help;
20} command_t;
21
22// command_t array are expected to be NULL terminated
23
24// Print help for each command in the command array
25void CmdsHelp(const command_t Commands[]);
f445df40 26// Print each command in the command array without help
27void CmdsLS(const command_t Commands[]);
7fe9b0b7 28// Parse a command line
cc3c0a51 29int CmdsParse(const command_t Commands[], const char *Cmd);
dec8e8bd 30void dumpCommandsRecursive(const command_t cmds[], int markdown);
7fe9b0b7 31
393c3ef9 32#endif
Impressum, Datenschutz