/*
- * test_graph_topo.c
+ * SPDX-License-Identifier: GPL-2.0-only
*
- * Copyright 2017 - Philippe Proulx <pproulx@efficios.com>
- *
- * 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) 2017 Philippe Proulx <pproulx@efficios.com>
*/
#include <babeltrace2/babeltrace.h>
size_t i;
for (i = 0; i < events->len; i++) {
- struct event *ev = &g_array_index(events, struct event, i);
+ struct event *ev = &bt_g_array_index(events, struct event, i);
if (compare_events(event, ev)) {
return true;
size_t i;
for (i = 0; i < events->len; i++) {
- struct event *ev = &g_array_index(events, struct event, i);
+ struct event *ev = &bt_g_array_index(events, struct event, i);
if (compare_events(event, ev)) {
return i;
bt_component_class_source_put_ref(src_comp_class);
bt_component_class_sink_put_ref(sink_comp_class);
g_array_free(events, TRUE);
+ BT_MESSAGE_ITERATOR_CLASS_PUT_REF_AND_RESET(msg_iter_class);
}
static