| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H |
| 8 | #define BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H |
| 9 | |
| 10 | #include <glib.h> |
| 11 | |
| 12 | #include <babeltrace2/types.h> |
| 13 | #include <babeltrace2/graph/query-executor.h> |
| 14 | #include <babeltrace2/graph/component-class.h> |
| 15 | |
| 16 | #include "lib/object.h" |
| 17 | #include "lib/value.h" |
| 18 | |
| 19 | struct bt_query_executor { |
| 20 | struct bt_object base; |
| 21 | |
| 22 | /* |
| 23 | * Array of `struct bt_interrupter *`, each one owned by this. |
| 24 | * If any interrupter is set, then this query executor is deemed |
| 25 | * interrupted. |
| 26 | */ |
| 27 | GPtrArray *interrupters; |
| 28 | |
| 29 | /* |
| 30 | * Default interrupter to support bt_query_executor_interrupt(); |
| 31 | * owned by this. |
| 32 | */ |
| 33 | struct bt_interrupter *default_interrupter; |
| 34 | |
| 35 | /* Owned by this */ |
| 36 | const struct bt_component_class *comp_cls; |
| 37 | |
| 38 | GString *object; |
| 39 | |
| 40 | /* Owned by this */ |
| 41 | const struct bt_value *params; |
| 42 | |
| 43 | void *method_data; |
| 44 | enum bt_logging_level log_level; |
| 45 | }; |
| 46 | |
| 47 | #endif /* BABELTRACE_GRAPH_QUERY_EXECUTOR_INTERNAL_H */ |