flt.lttng-utils.debug-info: tidy up component initialization
authorSimon Marchi <simon.marchi@efficios.com>
Sat, 5 Oct 2019 05:01:34 +0000 (01:01 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 11 Oct 2019 14:50:09 +0000 (10:50 -0400)
commitf4f11e84942d36fcc8a597d226928bce2ccac4b3
tree7402b7049c7aeb2add6fdc164c6ef077ac7800b4
parent80aff5efc66679fd934cef433c0e698694748385
flt.lttng-utils.debug-info: tidy up component initialization

Assign add_port_status to status directly, as has been the accepted
pattern in the rest of the project for a while.  This is less verbose
than using a switch-case.

Make init_from_params return a
bt_component_class_initialize_method_status, since it's only used in the
context of component initialization.  The alert reader will notice that
this function can't fail, making it pointless to have it return a
status.  However, it will be able to fail in the next patch, so I chose
to leave a non-void return type.

Change-Id: I41c1f6dc9dea5cbda4ef33f336d4b2cff216a568
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2141
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/lttng-utils/debug-info/debug-info.c
This page took 0.025813 seconds and 4 git commands to generate.