Add bt_component_class_query_info() API
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 11 Feb 2017 04:19:27 +0000 (23:19 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:38 +0000 (12:57 -0400)
commitefa96d5dba10be33738c3fba9bff3f5b684a8104
treea94797793d3cff5235276cd230c3282e1f16f6dc
parent9987e1accc6f5cdee18e5ae8fbb1f451a7080987
Add bt_component_class_query_info() API

When you create a component class, you can set an optional "query info"
class method with bt_component_class_sink_set_query_info_method().

A "query info" class method is a method which accepts an action name
and custom parameters and returns custom results. It can be used for
component class-specific requests such as getting the beginning and end
timestamps of a trace, its total size, and other statistics. On some
real-time source component class, it can be used to get a list of
endpoints to which to connect.

You can use bt_component_class_query_info() to query a component class.
The action name and parameters are mandatory, although you can use
bt_value_null for the parameters.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/component/component-class-internal.h
include/babeltrace/component/component-class.h
lib/component/component-class.c
This page took 0.024693 seconds and 4 git commands to generate.