23 lines
251 B
C
23 lines
251 B
C
|
#ifndef INC_CLI_H
|
||
|
#define INC_CLI_H
|
||
|
|
||
|
|
||
|
enum CliArgType {
|
||
|
INT,
|
||
|
STR,
|
||
|
WRONG_TYPE
|
||
|
};
|
||
|
|
||
|
struct CliCommandEntry {
|
||
|
char *cmd;
|
||
|
unsigned int arg_count;
|
||
|
enum CliArgType *args;
|
||
|
int (*process)(void *);
|
||
|
};
|
||
|
|
||
|
|
||
|
unsigned int cli_poll_process_next(void);
|
||
|
|
||
|
|
||
|
#endif
|