2018-01-29 13:11:20 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
* Copyright(c) 2010-2014 Intel Corporation.
|
2012-09-04 12:54:00 +00:00
|
|
|
* Copyright (c) 2009, Olivier MATZ <zer0@droids-corp.org>
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _CMDLINE_SOCKET_H_
|
|
|
|
#define _CMDLINE_SOCKET_H_
|
|
|
|
|
2016-09-08 12:25:07 +00:00
|
|
|
#include <cmdline_parse.h>
|
|
|
|
#include <cmdline.h>
|
|
|
|
|
2012-09-04 12:54:00 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct cmdline *cmdline_file_new(cmdline_parse_ctx_t *ctx, const char *prompt, const char *path);
|
|
|
|
struct cmdline *cmdline_stdin_new(cmdline_parse_ctx_t *ctx, const char *prompt);
|
|
|
|
void cmdline_stdin_exit(struct cmdline *cl);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _CMDLINE_SOCKET_H_ */
|