#include <babeltrace/lib-logging-internal.h>
#include <babeltrace/compiler-internal.h>
-#include <babeltrace/ctf-ir/packet.h>
-#include <babeltrace/ctf-ir/packet-internal.h>
-#include <babeltrace/ctf-ir/stream-class.h>
-#include <babeltrace/ctf-ir/stream.h>
-#include <babeltrace/ctf-ir/stream-internal.h>
+#include <babeltrace/trace-ir/packet.h>
+#include <babeltrace/trace-ir/packet-internal.h>
+#include <babeltrace/trace-ir/stream-class.h>
+#include <babeltrace/trace-ir/stream.h>
+#include <babeltrace/trace-ir/stream-internal.h>
#include <babeltrace/graph/graph-internal.h>
#include <babeltrace/graph/notification-packet-internal.h>
#include <babeltrace/graph/private-connection-private-notification-iterator.h>
struct bt_private_connection_private_notification_iterator *notif_iter,
struct bt_packet *packet)
{
- struct bt_notification_packet_begin *notification;
+ struct bt_notification_packet_begin *notification = NULL;
struct bt_stream *stream;
struct bt_stream_class *stream_class;
struct bt_graph *graph;
notification->packet = packet;
bt_object_get_no_null_check_no_parent_check(
¬ification->packet->base);
+ bt_packet_set_is_frozen(packet, true);
BT_LOGD("Created packet beginning notification object: "
"packet-addr=%p, stream-addr=%p, stream-name=\"%s\", "
"stream-class-addr=%p, stream-class-name=\"%s\", "
struct bt_private_connection_private_notification_iterator *notif_iter,
struct bt_packet *packet)
{
- struct bt_notification_packet_end *notification;
+ struct bt_notification_packet_end *notification = NULL;
struct bt_stream *stream;
struct bt_stream_class *stream_class;
struct bt_graph *graph;
notification->packet = packet;
bt_object_get_no_null_check_no_parent_check(
¬ification->packet->base);
+ bt_packet_set_is_frozen(packet, true);
BT_LOGD("Created packet end notification object: "
"packet-addr=%p, stream-addr=%p, stream-name=\"%s\", "
"stream-class-addr=%p, stream-class-name=\"%s\", "