| 1 | /* |
| 2 | * SPDX-License-Identifier: MIT |
| 3 | * |
| 4 | * Copyright 2017-2019 Philippe Proulx <pproulx@efficios.com> |
| 5 | */ |
| 6 | |
| 7 | #ifndef BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H |
| 8 | #define BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H |
| 9 | |
| 10 | #include <stdint.h> |
| 11 | #include <babeltrace2/types.h> |
| 12 | #include <babeltrace2/graph/message.h> |
| 13 | |
| 14 | struct simple_sink_init_method_data { |
| 15 | bt_graph_simple_sink_component_initialize_func init_func; |
| 16 | bt_graph_simple_sink_component_consume_func consume_func; |
| 17 | bt_graph_simple_sink_component_finalize_func finalize_func; |
| 18 | void *user_data; |
| 19 | }; |
| 20 | |
| 21 | extern struct bt_component_class_sink * |
| 22 | bt_component_class_sink_simple_borrow(void); |
| 23 | |
| 24 | #endif /* BABELTRACE_GRAPH_COMPONENT_CLASS_SINK_SIMPLE_H */ |