lib: keep plugin name, if any, in component class structure
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 19 Jun 2019 21:08:09 +0000 (17:08 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 6 Jul 2019 03:47:50 +0000 (23:47 -0400)
commit2ce06c9e12da671dd1098ed4174a070af95cb406
tree4b29ee59a2d6ae2295e599e0ab5b3be2f3c3e649
parent9dd336586407bade390e224fb938b9de8c3ca583
lib: keep plugin name, if any, in component class structure

This is to make the plugin name available when having a component class
object in an upcoming error reporting API.

We don't keep the `bt_plugin` object itself because it's a component
class's owner, and a component class can outlive its containing plugin:
only the shared object data is kept alive in that case.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I9cfbac32d88a6e7edac238b5a63b232695613b8c
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1523
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
src/lib/graph/component-class.c
src/lib/graph/component-class.h
src/lib/plugin/plugin.h
This page took 0.024788 seconds and 4 git commands to generate.