#include <babeltrace/ctf-ir/packet.h>
#include <babeltrace/ctf-ir/clock-class.h>
-#include <babeltrace/component/private-component.h>
-#include <babeltrace/component/component.h>
-#include <babeltrace/component/notification/iterator.h>
-#include <babeltrace/component/notification/private-iterator.h>
-#include <babeltrace/component/notification/stream.h>
-#include <babeltrace/component/notification/event.h>
-#include <babeltrace/component/notification/packet.h>
-#include <babeltrace/component/notification/heap.h>
+#include <babeltrace/graph/private-component.h>
+#include <babeltrace/graph/component.h>
+#include <babeltrace/graph/notification-iterator.h>
+#include <babeltrace/graph/private-notification-iterator.h>
+#include <babeltrace/graph/notification-stream.h>
+#include <babeltrace/graph/notification-event.h>
+#include <babeltrace/graph/notification-packet.h>
+#include <babeltrace/graph/notification-heap.h>
#include <plugins-common.h>
#include <glib.h>
#include <assert.h>
}
enum bt_notification_iterator_status ctf_fs_iterator_init(
- struct bt_private_component *source,
- struct bt_private_port *port,
- struct bt_private_notification_iterator *it)
+ struct bt_private_notification_iterator *it,
+ struct bt_private_port *port)
{
struct ctf_fs_iterator *ctf_it;
struct ctf_fs_component *ctf_fs;
+ struct bt_private_component *source =
+ bt_private_notification_iterator_get_private_component(it);
enum bt_notification_iterator_status ret = BT_NOTIFICATION_ITERATOR_STATUS_OK;
assert(source && it);
goto error;
}
-end:
- return ret;
+ goto end;
+
error:
(void) bt_private_notification_iterator_set_user_data(it, NULL);
ctf_fs_iterator_destroy_data(ctf_it);
- goto end;
+
+end:
+ bt_put(source);
+ return ret;
}
static