]>
Commit | Line | Data |
---|---|---|
9f95a23c TL |
1 | /* SPDX-License-Identifier: BSD-3-Clause |
2 | * Copyright(c) 2010-2014 Intel Corporation. | |
7c673cae FG |
3 | * Copyright (c) 2009, Olivier MATZ <zer0@droids-corp.org> |
4 | * All rights reserved. | |
7c673cae FG |
5 | */ |
6 | ||
7 | #include <stdio.h> | |
8 | #include <string.h> | |
9 | #include <stdint.h> | |
10 | #include <errno.h> | |
11 | #include <termios.h> | |
12 | #include <sys/queue.h> | |
13 | ||
14 | #include <cmdline_rdline.h> | |
15 | #include <cmdline_parse.h> | |
16 | #include <cmdline_socket.h> | |
17 | #include <cmdline.h> | |
18 | ||
19 | #include <rte_memory.h> | |
7c673cae FG |
20 | #include <rte_eal.h> |
21 | #include <rte_debug.h> | |
22 | ||
23 | #include "commands.h" | |
24 | ||
25 | int main(int argc, char **argv) | |
26 | { | |
27 | int ret; | |
28 | struct cmdline *cl; | |
29 | ||
30 | ret = rte_eal_init(argc, argv); | |
31 | if (ret < 0) | |
32 | rte_panic("Cannot init EAL\n"); | |
33 | ||
34 | cl = cmdline_stdin_new(main_ctx, "example> "); | |
35 | if (cl == NULL) | |
36 | rte_panic("Cannot create cmdline instance\n"); | |
37 | cmdline_interact(cl); | |
38 | cmdline_stdin_exit(cl); | |
39 | ||
40 | return 0; | |
41 | } |