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