Move to kernel style SPDX license identifiers
[babeltrace.git] / src / lib / graph / component-descriptor-set.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 */
7
8 #ifndef BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H
9 #define BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H
10
11 #include <babeltrace2/graph/graph.h>
12 #include <babeltrace2/graph/component-descriptor-set.h>
13 #include "common/macros.h"
14 #include "lib/object.h"
15 #include "common/assert.h"
16 #include "common/common.h"
17 #include <stdlib.h>
18 #include <glib.h>
19
20 #include "component.h"
21 #include "component-sink.h"
22 #include "connection.h"
23 #include "lib/func-status.h"
24
25 /*
26 * This structure describes an eventual component instance.
27 */
28 struct bt_component_descriptor_set_entry {
29 /* Owned by this */
30 struct bt_component_class *comp_cls;
31
32 /* Owned by this */
33 struct bt_value *params;
34
35 void *init_method_data;
36 };
37
38 struct bt_component_descriptor_set {
39 struct bt_object base;
40
41 /* Array of `struct bt_component_descriptor_set_entry *` */
42 GPtrArray *sources;
43
44 /* Array of `struct bt_component_descriptor_set_entry *` */
45 GPtrArray *filters;
46
47 /* Array of `struct bt_component_descriptor_set_entry *` */
48 GPtrArray *sinks;
49 };
50
51 #endif /* BABELTRACE_GRAPH_COMPONENT_DESCRIPTOR_SET_INTERNAL_H */
This page took 0.031275 seconds and 4 git commands to generate.