[connman] Added Tizen Wi-Fi Mesh
[platform/upstream/connman.git] / client / input.h
1 /*
2  *
3  *  Connection Manager
4  *
5  *  Copyright (C) 2012-2014  Intel Corporation. All rights reserved.
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License as published by
9  *  the Free Software Foundation; either version 2 of the License, or
10  *  (at your option) any later version.
11  *
12  *  This program is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  *  GNU General Public License for more details.
16  *
17  *  You should have received a copy of the GNU General Public License
18  *  along with this program; if not, write to the Free Software
19  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20  *
21  */
22
23 #ifndef __CONNMANCTL_INPUT_H
24 #define __CONNMANCTL_INPUT_H
25
26 #include <stdbool.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 void __connmanctl_quit(void);
33 bool __connmanctl_is_interactive(void);
34 void __connmanctl_save_rl(void);
35 void __connmanctl_redraw_rl(void);
36 int __connmanctl_input_calc_level(void);
37 void __connmanctl_input_lookup_end(void);
38 typedef void (* connmanctl_input_func_t) (char *input, void *user_data);
39 void __connmanctl_agent_mode(const char *prompt,
40                 connmanctl_input_func_t input_handler, void *user_data);
41 void __connmanctl_command_mode(void);
42 int __connmanctl_input_init(int argc, char *argv[]);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif /* __CONNMANCTL_INPUT_H */