ubinos
include
ubinos
ubiclib
cli.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2009 Sung Ho Park
3
Contact: ubinos.org@gmail.com
4
5
This file is part of the itf_ubinos component of the Ubinos.
6
7
GNU General Public License Usage
8
This file may be used under the terms of the GNU
9
General Public License version 3.0 as published by the Free Software
10
Foundation and appearing in the file license_gpl3.txt included in the
11
packaging of this file. Please review the following information to
12
ensure the GNU General Public License version 3.0 requirements will be
13
met: http://www.gnu.org/copyleft/gpl.html.
14
15
GNU Lesser General Public License Usage
16
Alternatively, this file may be used under the terms of the GNU Lesser
17
General Public License version 2.1 as published by the Free Software
18
Foundation and appearing in the file license_lgpl.txt included in the
19
packaging of this file. Please review the following information to
20
ensure the GNU Lesser General Public License version 2.1 requirements
21
will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
22
23
Commercial Usage
24
Alternatively, licensees holding valid commercial licenses may
25
use this file in accordance with the commercial license agreement
26
provided with the software or, alternatively, in accordance with the
27
terms contained in a written agreement between you and rightful owner.
28
*/
29
30
#ifndef UBICLIB_CLI_H_
31
#define UBICLIB_CLI_H_
32
33
#ifdef __cplusplu
34
extern
"C"
{
35
#endif
36
45
#include <ubinos_config.h>
46
#include <
ubinos/type.h
>
47
49
typedef
int (*
cli_hookfunc_ft
)(
char
*str,
int
max
,
void
*arg);
50
52
typedef
void (*
cli_helphookfunc_ft
)();
53
67
int
cli_sethookfunc
(
cli_hookfunc_ft
hookfunc,
void
*arg);
68
80
int
cli_sethelphookfunc
(
cli_helphookfunc_ft
helphookfunc);
81
91
int
cli_setprompt
(
char
*prompt);
92
102
void
cli_main
(
void
*arg);
103
104
#ifdef __cplusplus
105
}
106
#endif
107
108
#endif
/* UBICLIB_CLI_H_ */
cli_sethookfunc
int cli_sethookfunc(cli_hookfunc_ft hookfunc, void *arg)
cli_setprompt
int cli_setprompt(char *prompt)
cli_main
void cli_main(void *arg)
cli_hookfunc_ft
int(* cli_hookfunc_ft)(char *str, int max, void *arg)
Definition:
cli.h:49
type.h
ubinos basic data type
max
#define max(a, b)
Definition:
ubiclib.h:257
cli_sethelphookfunc
int cli_sethelphookfunc(cli_helphookfunc_ft helphookfunc)
cli_helphookfunc_ft
void(* cli_helphookfunc_ft)()
Definition:
cli.h:52
Generated by
1.8.17