ac10de4f85cadfc8211021f6faf6986fa767f088
[dpdk.git] / lib / librte_cmdline / cmdline_private.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2020 Dmitry Kozlyuk
3  */
4
5 #ifndef _CMDLINE_PRIVATE_H_
6 #define _CMDLINE_PRIVATE_H_
7
8 #include <cmdline.h>
9
10 /* Disable buffering and echoing, save previous settings to oldterm. */
11 void terminal_adjust(struct cmdline *cl);
12
13 /* Restore terminal settings form oldterm. */
14 void terminal_restore(const struct cmdline *cl);
15
16 /* Check if a single character can be read from input. */
17 int cmdline_poll_char(struct cmdline *cl);
18
19 /* Read one character from input. */
20 ssize_t cmdline_read_char(struct cmdline *cl, char *c);
21
22 #endif