5 * Copyright (C) 2012-2014 Intel Corporation. All rights reserved.
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.
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.
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
23 #ifndef __CONNMANCTL_INPUT_H
24 #define __CONNMANCTL_INPUT_H
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[]);
48 #endif /* __CONNMANCTL_INPUT_H */