begin of dynamic capabilities handling in client

This commit is contained in:
Philippe Teuwen 2019-05-01 20:48:15 +02:00
commit ca43afa19b
55 changed files with 554 additions and 536 deletions

View file

@ -14,12 +14,15 @@
typedef struct command_s {
const char *Name;
int (*Parse)(const char *Cmd);
int Offline;
bool (*IsAvailable)(void);
const char *Help;
} command_t;
// command_t array are expected to be NULL terminated
bool AlwaysAvailable(void);
bool IfPm3Present(void);
bool IfPm3Hfsniff(void);
// Print help for each command in the command array
void CmdsHelp(const command_t Commands[]);
// Print each command in the command array without help