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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Oct 2019 16:13:26 +0000 (12:13 -0400)
commit629d19044c43b195498d0a4e002906c54b6186d5
tree9eb9226926571a67acd17479a8bcd4b9d58596a3
parenta0df3abf88616cb0799f87f4eb57c54268e63448
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.025781 seconds and 4 git commands to generate.