cli: make config cli args functions return a status enum
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 9 Aug 2021 15:55:58 +0000 (11:55 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 27 Aug 2021 01:28:02 +0000 (21:28 -0400)
commit353c2524c2d4606a79ac5f4c0354a683a14e63e5
treee80d7be6c680bc0797d0d7baaa70ce6584032852
parenta80892bab38643e037d92efae2a9d0de1e006785
cli: make config cli args functions return a status enum

The retcode returned by functions that create a bt_config from CLI args
is not very intuitive.  Replace that by a proper status enum.  Change
those functions to return the status as their return value, and return
the bt_config through an out parameter (only if the returned status is
BT_CONFIG_CLI_ARGS_STATUS_OK).

Change-Id: I2f273a6e28bcd0322a1b7ddd303639a696043872
Reviewed-on: https://review.lttng.org/c/babeltrace/+/6278
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
src/cli/babeltrace2-cfg-cli-args-default.c
src/cli/babeltrace2-cfg-cli-args-default.h
src/cli/babeltrace2-cfg-cli-args.c
src/cli/babeltrace2-cfg-cli-args.h
src/cli/babeltrace2.c
This page took 0.025531 seconds and 4 git commands to generate.