/*
- * Copyright (c) 2019 Philippe Proulx <pproulx@efficios.com>
+ * SPDX-License-Identifier: GPL-2.0-only
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; under version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ * Copyright (C) 2019 Philippe Proulx <pproulx@efficios.com>
*/
#include <babeltrace2/babeltrace.h>
static
bt_graph_simple_sink_component_initialize_func_status simple_INITIALIZE_func(
- bt_self_component_port_input_message_iterator *iterator,
+ bt_message_iterator *iterator,
void *data)
{
struct test_data *test_data = data;
static
bt_graph_simple_sink_component_consume_func_status simple_consume_func(
- bt_self_component_port_input_message_iterator *iterator,
+ bt_message_iterator *iterator,
void *data)
{
struct test_data *test_data = data;
*out_port = bt_component_source_borrow_output_port_by_index_const(
src_comp, 0);
BT_ASSERT(*out_port);
- bt_component_source_put_ref(src_comp);
bt_component_class_source_put_ref(src_comp_cls);
bt_message_iterator_class_put_ref(msg_iter_cls);
return graph;
ok((run_once_status < 0) == (err != NULL),
"Current thread error is set if bt_graph_run_once returned an error");
- bt_component_sink_put_ref(sink_comp);
bt_graph_put_ref(graph);
if (err) {
bt_error_release(err);