#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-const.h>
+#include <babeltrace/graph/notification-packet.h>
#include <babeltrace/graph/notification-packet-internal.h>
#include <babeltrace/object.h>
#include <babeltrace/assert-internal.h>
return (void *) notification;
}
-struct bt_private_notification *bt_private_notification_packet_begin_create(
+struct bt_notification *bt_notification_packet_begin_create(
struct bt_self_notification_iterator *self_notif_iter,
struct bt_packet *packet)
{
bt_object_pool_recycle_object(&graph->packet_begin_notif_pool, notif);
}
-struct bt_packet *bt_private_notification_packet_begin_borrow_packet(
- struct bt_private_notification *notification)
+struct bt_packet *bt_notification_packet_begin_borrow_packet(
+ struct bt_notification *notification)
{
struct bt_notification_packet_begin *packet_begin;
return packet_begin->packet;
}
-const struct bt_packet *bt_notification_packet_begin_borrow_packet(
- struct bt_notification *notification)
+const struct bt_packet *bt_notification_packet_begin_borrow_packet_const(
+ const struct bt_notification *notification)
{
- return bt_private_notification_packet_begin_borrow_packet(
+ return bt_notification_packet_begin_borrow_packet(
(void *) notification);
}
return (void *) notification;
}
-struct bt_private_notification *bt_private_notification_packet_end_create(
+struct bt_notification *bt_notification_packet_end_create(
struct bt_self_notification_iterator *self_notif_iter,
struct bt_packet *packet)
{
bt_object_pool_recycle_object(&graph->packet_end_notif_pool, notif);
}
-struct bt_packet *bt_private_notification_packet_end_borrow_packet(
- struct bt_private_notification *notification)
+struct bt_packet *bt_notification_packet_end_borrow_packet(
+ struct bt_notification *notification)
{
struct bt_notification_packet_end *packet_end;
return packet_end->packet;
}
-const struct bt_packet *bt_notification_packet_end_borrow_packet(
- struct bt_notification *notification)
+const struct bt_packet *bt_notification_packet_end_borrow_packet_const(
+ const struct bt_notification *notification)
{
- return bt_private_notification_packet_end_borrow_packet(
+ return bt_notification_packet_end_borrow_packet(
(void *) notification);
}