Babeltrace 2 C API 2.1.0
Open-source trace manipulation framework
Loading...
Searching...
No Matches
private-query-executor.h
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2010-2019 EfficiOS Inc. and Linux Foundation
5 */
6
7#ifndef BABELTRACE2_GRAPH_PRIVATE_QUERY_EXECUTOR_H
8#define BABELTRACE2_GRAPH_PRIVATE_QUERY_EXECUTOR_H
9
10/* IWYU pragma: private, include <babeltrace2/babeltrace.h> */
11
12#ifndef __BT_IN_BABELTRACE_H
13# error "Please include <babeltrace2/babeltrace.h> instead."
14#endif
15
16#include <babeltrace2/types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
79static inline
82 bt_private_query_executor *query_executor) __BT_NOEXCEPT
83{
84 return __BT_UPCAST_CONST(bt_query_executor, query_executor);
85}
86
91#ifdef __cplusplus
92}
93#endif
94
95#endif /* BABELTRACE2_GRAPH_PRIVATE_QUERY_EXECUTOR_H */
static const bt_query_executor * bt_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.
Definition private-query-executor.h:81
struct bt_private_query_executor bt_private_query_executor
Private query executor.
Definition types.h:69
struct bt_query_executor bt_query_executor
Query executor.
Definition types.h:70