begin of dynamic capabilities handling in client

This commit is contained in:
Philippe Teuwen committed 2019-05-01 20:48:15 +02:00
1 parent 5a6929c533
commit ca43afa19b
55 files changed
+554 -536

No files matched your search

+5 -2
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