/*
- * Babeltrace Plug-in Packet-related Notifications
- *
* Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
*
* Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
#include <babeltrace/trace-ir/stream.h>
#include <babeltrace/trace-ir/stream-internal.h>
#include <babeltrace/graph/graph-internal.h>
+#include <babeltrace/graph/private-notification-packet.h>
#include <babeltrace/graph/notification-packet-internal.h>
#include <babeltrace/graph/private-connection-private-notification-iterator.h>
+#include <babeltrace/object.h>
#include <babeltrace/assert-internal.h>
#include <babeltrace/assert-pre-internal.h>
#include <babeltrace/object-internal.h>
return (void *) notification;
}
-struct bt_notification *bt_notification_packet_begin_create(
+struct bt_private_notification *bt_private_notification_packet_begin_create(
struct bt_private_connection_private_notification_iterator *notif_iter,
- struct bt_packet *packet)
+ struct bt_private_packet *priv_packet)
{
+ struct bt_packet *packet = (void *) priv_packet;
struct bt_notification_packet_begin *notification = NULL;
struct bt_stream *stream;
struct bt_stream_class *stream_class;
return packet_begin->packet;
}
+struct bt_private_packet *
+bt_private_notification_packet_begin_borrow_private_packet(
+ struct bt_private_notification *notification)
+{
+ return (void *) bt_notification_packet_begin_borrow_packet(
+ (void *) notification);
+}
+
BT_HIDDEN
struct bt_notification *bt_notification_packet_end_new(struct bt_graph *graph)
{
return (void *) notification;
}
-struct bt_notification *bt_notification_packet_end_create(
+struct bt_private_notification *bt_private_notification_packet_end_create(
struct bt_private_connection_private_notification_iterator *notif_iter,
- struct bt_packet *packet)
+ struct bt_private_packet *priv_packet)
{
+ struct bt_packet *packet = (void *) priv_packet;
struct bt_notification_packet_end *notification = NULL;
struct bt_stream *stream;
struct bt_stream_class *stream_class;
struct bt_notification_packet_end, parent);
return packet_end->packet;
}
+
+struct bt_private_packet *bt_private_notification_packet_end_borrow_packet(
+ struct bt_private_notification *notification)
+{
+ return (void *) bt_notification_packet_end_borrow_packet(
+ (void *) notification);
+}