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)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:12:55 +0000 (00:12 -0400)
commit327e0310d225dbadf0309fcce22b05e73d511fd3
treebd0487814deb6de23e35639c1af4a0026c3cb05a
parent6f4827a397e6b3a4310a7853fda465ab9c9765e4
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.02424 seconds and 5 git commands to generate.