Babeltrace 2 C API  2.0.0
Open-source trace manipulation framework
Private query executor

Detailed Description

Private view of a query executor for a component class query method.

A private query executor is a private view, from within a component class query method, of a query executor.

A query method receives a private query executor as its query_executor parameter.

As of Babeltrace 2.0, this module only offers the bt_private_query_executor_as_query_executor_const() function to upcast a private query executor to a const query executor. You need this to get the query executor's logging level.

Type

typedef struct bt_private_query_executor bt_private_query_executor
 Private query executor.
 

Upcast

static const bt_query_executorbt_private_query_executor_as_query_executor_const (bt_private_query_executor *query_executor)
 Upcasts the private query executor query_executor to the public bt_query_executor type. More...
 

Function Documentation

◆ bt_private_query_executor_as_query_executor_const()

static const bt_query_executor* bt_private_query_executor_as_query_executor_const ( bt_private_query_executor query_executor)
inlinestatic

Upcasts the private query executor query_executor to the public bt_query_executor type.

Parameters
[in]query_executor

Private query executor to upcast.

Can be NULL.

Returns
query_executor as a public query executor.