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_SOCKET_H_ 8 #define _CMDLINE_SOCKET_H_ 9 10 #include <cmdline_parse.h> 11 #include <cmdline.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 struct cmdline *cmdline_file_new(cmdline_parse_ctx_t *ctx, const char *prompt, const char *path); 18 struct cmdline *cmdline_stdin_new(cmdline_parse_ctx_t *ctx, const char *prompt); 19 void cmdline_stdin_exit(struct cmdline *cl); 20 21 #ifdef __cplusplus 22 } 23 #endif 24 25 #endif /* _CMDLINE_SOCKET_H_ */ 26