cli: Make append_parameter_to_args accept a bt_value value
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Apr 2019 15:16:00 +0000 (11:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commit242407a922a6b4792c9117dee9a0c6a31590301f
treeab0403d0890cca1184374b047143ebf00dfb37a9
parentb2f834c9f7e65c7870f880bed965839f0ee06235
cli: Make append_parameter_to_args accept a bt_value value

append_parameter_to_args is used to append a --params=KEY=VALUE argument
to a list of arguments.  It currently assumes that VALUE is a simple
string.  We will want to generalize this to support arrays (in the form
of a bt_value of type array).  This patch does a bit of refactoring in
preparation of that, making append_parameter_to_args accept a value of
type bt_value* instead of const char*.

append_string_parameter_to_args is introduced as a wrapper, for those
spots that still want to pass a simple string value.  It converts the
string to a temporary bt_value of type string.

No functional changes intended.

Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
cli/babeltrace-cfg-cli-args.c
This page took 0.024225 seconds and 4 git commands to generate.