DPDK 22.11.1
Loading...
Searching...
No Matches
cmdline.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation.
3 * Copyright (c) 2009, Olivier MATZ <zer0@droids-corp.org>
4 * All rights reserved.
5 */
6
7#ifndef _CMDLINE_H_
8#define _CMDLINE_H_
9
10#include <rte_common.h>
11#include <rte_compat.h>
12
13#include <cmdline_rdline.h>
14#include <cmdline_parse.h>
15
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26struct cmdline;
27
28struct cmdline *cmdline_new(cmdline_parse_ctx_t *ctx, const char *prompt, int s_in, int s_out);
29void cmdline_set_prompt(struct cmdline *cl, const char *prompt);
30void cmdline_free(struct cmdline *cl);
31void cmdline_printf(const struct cmdline *cl, const char *fmt, ...)
33int cmdline_in(struct cmdline *cl, const char *buf, int size);
34int cmdline_write_char(struct rdline *rdl, char c);
35
36__rte_experimental
37struct rdline *
38cmdline_get_rdline(struct cmdline *cl);
39
52int cmdline_poll(struct cmdline *cl);
53
54void cmdline_interact(struct cmdline *cl);
55void cmdline_quit(struct cmdline *cl);
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* _CMDLINE_SOCKET_H_ */
int cmdline_poll(struct cmdline *cl)
#define __rte_format_printf(format_index, first_arg)
Definition rte_common.h:148