lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / graph / notification-packet-internal.h
index 4fc401662545cbefe9d4d102b42716c0d7a8070b..467d08615092c7afa7edcb26641eb53b7b38dcfe 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
+#define BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H
 
 /*
  * BabelTrace - Packet-related Notifications
@@ -42,28 +42,4 @@ struct bt_notification_packet_end {
        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_ASSERT(notif_packet_begin);
-       return notif_packet_begin->packet;
-}
-
-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_ASSERT(notif_packet_end);
-       return notif_packet_end->packet;
-}
-
-#endif /* BABELTRACE_COMPONENT_NOTIFICATION_PACKET_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_PACKET_INTERNAL_H */
This page took 0.025801 seconds and 4 git commands to generate.