-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f59fecd
commit 8c84a99
Showing
2 changed files
with
46 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
/* | ||
* Chu Controller Command Line Framework | ||
* WHowe <github.com/whowechina> | ||
*/ | ||
|
||
#ifndef CLI_H | ||
#define CLI_H | ||
|
||
|
||
typedef void (*cmd_handler_t)(int argc, char *argv[]); | ||
|
||
void cli_init(const char *prompt, const char *logo); | ||
void cli_register(const char *cmd, cmd_handler_t handler, const char *help); | ||
void cli_run(); | ||
void cli_fps_count(int core); | ||
|
||
int cli_extract_non_neg_int(const char *param, int len); | ||
int cli_match_prefix(const char *str[], int num, const char *prefix); | ||
|
||
#endif | ||
/* | ||
* Chu Controller Command Line Framework | ||
* WHowe <github.com/whowechina> | ||
*/ | ||
|
||
#ifndef CLI_H | ||
#define CLI_H | ||
|
||
|
||
typedef void (*cmd_handler_t)(int argc, char *argv[]); | ||
|
||
void cli_init(const char *prompt, const char *logo); | ||
void cli_register(const char *cmd, cmd_handler_t handler, const char *help); | ||
void cli_run(); | ||
void cli_fps_count(int core); | ||
|
||
int cli_extract_non_neg_int(const char *param, int len); | ||
int cli_match_prefix(const char *str[], int num, const char *prefix); | ||
|
||
extern const char *built_time; | ||
#endif |