string-format: introduce function to format component class name
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 21 Nov 2019 21:58:12 +0000 (16:58 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 5 Dec 2019 19:29:13 +0000 (19:29 +0000)
commitec532b44ab55ca6db21780a3f90ed2d6c37eab90
tree7f56e7cd3ecb315cf0e1d281158a9d67b883efad
parent3aa68ad9462c0d154a57b98d0f51880128731781
string-format: introduce function to format component class name

The CLI has a function to print a component class name nicely,
print_plugin_comp_cls_opt.  The same functionality will be needed by
the Python bindings, move the function to a new convenience library.
Modify the function to return a string instead of printing directly to a
stream.  Update users accordingly.

Change-Id: I83fb61107ce93497ed34ebc383cbd3185c19752c
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2432
Tested-by: jenkins <jenkins@lttng.org>
configure.ac
src/Makefile.am
src/cli/Makefile.am
src/cli/babeltrace2.c
src/string-format/Makefile.am [new file with mode: 0644]
src/string-format/format-plugin-comp-cls-name.c [new file with mode: 0644]
src/string-format/format-plugin-comp-cls-name.h [new file with mode: 0644]
This page took 0.02463 seconds and 4 git commands to generate.