lib: add internal object pool API and use it; adapt plugins/tests
[babeltrace.git] / include / babeltrace / graph / notification-stream-internal.h
index 5c0f72260c3c50e1ce2d8bfd07c2ec38ad8e3eab..708d0fae1da091580e49df304f0eb55644775aa4 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H
+#define BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H
 
 /*
  * BabelTrace - Stream-related Notifications
@@ -42,28 +42,4 @@ struct bt_notification_stream_end {
        struct bt_stream *stream;
 };
 
-static inline
-struct bt_stream *bt_notification_stream_begin_borrow_stream(
-               struct bt_notification *notif)
-{
-       struct bt_notification_stream_begin *notif_stream_begin =
-               container_of(notif,
-                       struct bt_notification_stream_begin, parent);
-
-       BT_ASSERT(notif_stream_begin);
-       return notif_stream_begin->stream;
-}
-
-static inline
-struct bt_stream *bt_notification_stream_end_borrow_stream(
-               struct bt_notification *notif)
-{
-       struct bt_notification_stream_end *notif_stream_end =
-               container_of(notif,
-                       struct bt_notification_stream_end, parent);
-
-       BT_ASSERT(notif_stream_end);
-       return notif_stream_end->stream;
-}
-
-#endif /* BABELTRACE_COMPONENT_NOTIFICATION_STREAM_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H */
This page took 0.025642 seconds and 4 git commands to generate.