ubinos
cli.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 Sung Ho Park
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef UBICLIB_CLI_H_
8 #define UBICLIB_CLI_H_
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
22 #include <ubinos_config.h>
23 #include <ubinos/type.h>
24 
26 typedef int (*cli_hookfunc_ft)(char *str, int len, void *arg);
27 
29 typedef void (*cli_helphookfunc_ft)();
30 
44 int cli_sethookfunc(cli_hookfunc_ft hookfunc, void *arg);
45 
58 
68 int cli_setprompt(char *prompt);
69 
79 int cli_set_initial_cmd(char * cmd);
80 
90 void cli_main(void *arg);
91 
92 #ifdef __cplusplus
93 }
94 #endif
95 
96 #endif /* UBICLIB_CLI_H_ */
int cli_setprompt(char *prompt)
int cli_sethookfunc(cli_hookfunc_ft hookfunc, void *arg)
int cli_set_initial_cmd(char *cmd)
void(* cli_helphookfunc_ft)()
Definition: cli.h:29
int(* cli_hookfunc_ft)(char *str, int len, void *arg)
Definition: cli.h:26
void cli_main(void *arg)
int cli_sethelphookfunc(cli_helphookfunc_ft helphookfunc)
ubinos basic data type