cpp-common/bt2: `User*Component`: pass query method data to user `_query` methods
Make `User*Component::query()` pass down the query method data down to
user methods.
Child classes of `UserSourceComponent`, `UserFilterComponent` and
`UserSinkComponent` can pass a template parameter to indicate the type
of query method data they wish to receive.
`UserComponent` defines a `QueryData` public member using the type
received as a template parameter. `CompClsBridge::query` uses this type
to cast the query method data, received from the lib as a `void *`, to
that type.
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Change-Id: If9f776dbaa723dd65391e3ea57c3067f53f52dc4
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11788
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
This page took 0.023877 seconds and 4 git commands to generate.