#include <string.h>
#include "cmdparser.h"
#include "proxmark3.h"
-#include "data.h"
#include "usb_cmd.h"
#include "ui.h"
#include "cmdhf.h"
#include "util.h"
#include "util_posix.h"
#include "cmdscript.h"
-
-
-unsigned int current_command = CMD_UNKNOWN;
+#ifdef WITH_SMARTCARD
+ #include "cmdsmartcard.h"
+#endif
static int CmdHelp(const char *Cmd);
static int CmdQuit(const char *Cmd);
{"hf", CmdHF, 1, "{ High Frequency commands... }"},
{"hw", CmdHW, 1, "{ Hardware commands... }"},
{"lf", CmdLF, 1, "{ Low Frequency commands... }"},
+#ifdef WITH_SMARTCARD
+ {"sc", CmdSmartcard,1,"{ Smartcard commands... }"},
+#endif
{"script",CmdScript,1, "{ Scripting commands }"},
{"quit", CmdQuit, 1, "Exit program"},
{"exit", CmdQuit, 1, "Exit program"},
return CommandTable;
}
-int CmdHelp(const char *Cmd)
+static int CmdHelp(const char *Cmd)
{
CmdsHelp(CommandTable);
return 0;
}
-int CmdQuit(const char *Cmd)
+static int CmdQuit(const char *Cmd)
{
return 99;
}