struct bt_packet *packet;
};
-static inline
-struct bt_packet *bt_notification_packet_begin_borrow_packet(
- struct bt_notification *notif)
-{
- struct bt_notification_packet_begin *notif_packet_begin =
- container_of(notif,
- struct bt_notification_packet_begin, parent);
+BT_HIDDEN
+struct bt_notification *bt_notification_packet_begin_new(
+ struct bt_graph *graph);
+BT_HIDDEN
+void bt_notification_packet_begin_recycle(struct bt_notification *notif);
- BT_ASSERT(notif_packet_begin);
- return notif_packet_begin->packet;
-}
+BT_HIDDEN
+void bt_notification_packet_begin_destroy(struct bt_notification *notif);
-static inline
-struct bt_packet *bt_notification_packet_end_borrow_packet(
- struct bt_notification *notif)
-{
- struct bt_notification_packet_end *notif_packet_end =
- container_of(notif,
- struct bt_notification_packet_end, parent);
+BT_HIDDEN
+struct bt_notification *bt_notification_packet_end_new(struct bt_graph *graph);
- BT_ASSERT(notif_packet_end);
- return notif_packet_end->packet;
-}
+BT_HIDDEN
+void bt_notification_packet_end_recycle(struct bt_notification *notif);
+
+BT_HIDDEN
+void bt_notification_packet_end_destroy(struct bt_notification *notif);
#endif /* BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H */