Rework Cmd exposed API, use more static and fix [-Wmissing-prototypes], ongoing...

This commit is contained in:
Philippe Teuwen
2019-04-12 02:07:11 +02:00
parent f6a6ec8447
commit 8aa5b42cdf
14 changed files with 135 additions and 133 deletions

View File

@@ -12,7 +12,7 @@
static int CmdHelp(const char *Cmd);
//see NRZDemod for what args are accepted
int CmdPacDemod(const char *Cmd) {
static int CmdPacDemod(const char *Cmd) {
//NRZ
if (!NRZrawDemod(Cmd, false)) {
@@ -51,7 +51,7 @@ int CmdPacDemod(const char *Cmd) {
return 1;
}
int CmdPacRead(const char *Cmd) {
static int CmdPacRead(const char *Cmd) {
lf_read(true, 4096 * 2 + 20);
return CmdPacDemod(Cmd);
}
@@ -63,14 +63,14 @@ static command_t CommandTable[] = {
{NULL, NULL, 0, NULL}
};
int CmdLFPac(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
static int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
return 0;
}
int CmdHelp(const char *Cmd) {
CmdsHelp(CommandTable);
int CmdLFPac(const char *Cmd) {
clearCommandBuffer();
CmdsParse(CommandTable, Cmd);
return 0;
}