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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Jan 2020 20:15:24 +0000 (15:15 -0500)
commitbed8ebb93ce37f7be10e7968a5f03810de9aa1e2
treecfb9bdd0e787f05a609a72d030bf0fd3934798d1
parenteeac16aff80d39d0e4131768366ffbc78266519e
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.024921 seconds and 4 git commands to generate.