f-stack/dpdk/app/test-cmdline/cmdline_test.c

38 lines
662 B
C
Raw Normal View History

2019-06-25 11:12:58 +00:00
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2010-2014 Intel Corporation
2017-04-21 10:43:26 +00:00
*/
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdlib.h>
#include <errno.h>
#include <termios.h>
#include <ctype.h>
#include <sys/queue.h>
2021-02-05 08:48:47 +00:00
#include <rte_common.h>
2017-04-21 10:43:26 +00:00
#include <cmdline_rdline.h>
#include <cmdline_parse.h>
#include <cmdline_socket.h>
#include <cmdline.h>
#include "cmdline_test.h"
int
2021-02-05 08:48:47 +00:00
main(int __rte_unused argc, char __rte_unused ** argv)
2017-04-21 10:43:26 +00:00
{
struct cmdline *cl;
cl = cmdline_stdin_new(main_ctx, "CMDLINE_TEST>>");
if (cl == NULL) {
return -1;
}
cmdline_interact(cl);
cmdline_stdin_exit(cl);
return 0;
}