numam-dpdk/app/test-cmdline
Dmitry Kozlyuk f8f8dc2890 cmdline: make struct rdline opaque
Hide struct rdline definition and some RDLINE_* constants in order
to be able to change internal buffer sizes transparently to the user.
Add new functions:

* rdline_new(): allocate and initialize struct rdline.
  This function replaces rdline_init() and takes an extra parameter:
  opaque user data for the callbacks.
* rdline_free(): deallocate struct rdline.
* rdline_get_history_buffer_size(): for use in tests.
* rdline_get_opaque(): to obtain user data in callback functions.

Remove rdline_init() function from library headers and export list,
because using it requires the knowledge of sizeof(struct rdline).

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Narcisa Vasile <navasile@linux.microsoft.com>
2021-10-22 23:23:45 +02:00
..
cmdline_test_data.py support python 3 only 2020-10-02 13:51:00 +02:00
cmdline_test.c replace unused attributes 2020-04-16 18:30:58 +02:00
cmdline_test.h app/cmdline: move from test directory 2019-02-26 15:24:11 +01:00
cmdline_test.py support python 3 only 2020-10-02 13:51:00 +02:00
commands.c cmdline: make struct rdline opaque 2021-10-22 23:23:45 +02:00
meson.build app/testpmd: build on Windows 2021-07-02 19:03:03 +02:00