xref: /dpdk/lib/cmdline/cmdline_socket.h (revision 0eefb453704b06b39052281be3c3f23d16fdc6b4)
1*99a2dd95SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause
2*99a2dd95SBruce Richardson  * Copyright(c) 2010-2014 Intel Corporation.
3*99a2dd95SBruce Richardson  * Copyright (c) 2009, Olivier MATZ <zer0@droids-corp.org>
4*99a2dd95SBruce Richardson  * All rights reserved.
5*99a2dd95SBruce Richardson  */
6*99a2dd95SBruce Richardson 
7*99a2dd95SBruce Richardson #ifndef _CMDLINE_SOCKET_H_
8*99a2dd95SBruce Richardson #define _CMDLINE_SOCKET_H_
9*99a2dd95SBruce Richardson 
10*99a2dd95SBruce Richardson #include <cmdline_parse.h>
11*99a2dd95SBruce Richardson 
12*99a2dd95SBruce Richardson #ifdef __cplusplus
13*99a2dd95SBruce Richardson extern "C" {
14*99a2dd95SBruce Richardson #endif
15*99a2dd95SBruce Richardson 
16*99a2dd95SBruce Richardson struct cmdline *cmdline_file_new(cmdline_parse_ctx_t *ctx, const char *prompt, const char *path);
17*99a2dd95SBruce Richardson struct cmdline *cmdline_stdin_new(cmdline_parse_ctx_t *ctx, const char *prompt);
18*99a2dd95SBruce Richardson void cmdline_stdin_exit(struct cmdline *cl);
19*99a2dd95SBruce Richardson 
20*99a2dd95SBruce Richardson #ifdef __cplusplus
21*99a2dd95SBruce Richardson }
22*99a2dd95SBruce Richardson #endif
23*99a2dd95SBruce Richardson 
24*99a2dd95SBruce Richardson #endif /* _CMDLINE_SOCKET_H_ */
25