Commit | Line | Data |
---|---|---|
55f09f52 | 1 | /* |
0235b0db MJ |
2 | * SPDX-License-Identifier: MIT |
3 | * | |
55f09f52 PP |
4 | * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com> |
5 | * Copyright 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com> | |
55f09f52 PP |
6 | */ |
7 | ||
ae2be88d SM |
8 | #ifndef BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H |
9 | #define BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H | |
0235b0db | 10 | |
55f09f52 PP |
11 | #include <babeltrace2/graph/graph.h> |
12 | #include <babeltrace2/graph/component-descriptor-set.h> | |
55f09f52 | 13 | #include "lib/object.h" |
55f09f52 PP |
14 | #include <glib.h> |
15 | ||
55f09f52 PP |
16 | /* |
17 | * This structure describes an eventual component instance. | |
18 | */ | |
19 | struct bt_component_descriptor_set_entry { | |
20 | /* Owned by this */ | |
21 | struct bt_component_class *comp_cls; | |
22 | ||
23 | /* Owned by this */ | |
24 | struct bt_value *params; | |
25 | ||
26 | void *init_method_data; | |
27 | }; | |
28 | ||
29 | struct bt_component_descriptor_set { | |
30 | struct bt_object base; | |
31 | ||
32 | /* Array of `struct bt_component_descriptor_set_entry *` */ | |
33 | GPtrArray *sources; | |
34 | ||
35 | /* Array of `struct bt_component_descriptor_set_entry *` */ | |
36 | GPtrArray *filters; | |
37 | ||
38 | /* Array of `struct bt_component_descriptor_set_entry *` */ | |
39 | GPtrArray *sinks; | |
40 | }; | |
41 | ||
ae2be88d | 42 | #endif /* BABELTRACE_LIB_GRAPH_COMPONENT_DESCRIPTOR_SET_H */ |