Fix: lib: add NULL check for destroy_listeners in destroy_component_class
[babeltrace.git] / src / lib / graph / component-source.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
5 * Copyright 2015 Jérémie Galarneau <jeremie.galarneau@efficios.com>
6 */
7
8 #ifndef BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H
9 #define BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H
10
11 #include "common/macros.h"
12
13 #include "component-class.h"
14 #include "component.h"
15
16 struct bt_component_source {
17 struct bt_component parent;
18 };
19
20 BT_HIDDEN
21 struct bt_component *bt_component_source_create(
22 const struct bt_component_class *class);
23
24 BT_HIDDEN
25 void bt_component_source_destroy(struct bt_component *component);
26
27 #endif /* BABELTRACE_GRAPH_COMPONENT_SOURCE_INTERNAL_H */
This page took 0.030778 seconds and 4 git commands to generate.