| 21 | #include "commands.h" |
| 22 | |
| 23 | int main(int argc, char **argv) |
| 24 | { |
| 25 | int ret; |
| 26 | struct cmdline *cl; |
| 27 | |
| 28 | ret = rte_eal_init(argc, argv); |
| 29 | if (ret < 0) |
| 30 | rte_panic("Cannot init EAL\n"); |
| 31 | |
| 32 | cl = cmdline_stdin_new(main_ctx, "example> "); |
| 33 | if (cl == NULL) |
| 34 | rte_panic("Cannot create cmdline instance\n"); |
| 35 | cmdline_interact(cl); |
| 36 | cmdline_stdin_exit(cl); |
| 37 | |
| 38 | rte_eal_cleanup(); |
| 39 | |
| 40 | return 0; |
| 41 | } |
nothing calls this directly
no test coverage detected