lib: graph: add "self" and some "private" APIs
[babeltrace.git] / include / babeltrace / graph / notification-stream-internal.h
index a9067947bbf1f8a6370b6d8b3cc4e8a193888c9b..4b4e0c7c68988dc232239c8b20be3fdd71e6f9bb 100644 (file)
@@ -2,8 +2,6 @@
 #define BABELTRACE_GRAPH_NOTIFICATION_STREAM_INTERNAL_H
 
 /*
- * BabelTrace - Stream-related Notifications
- *
  * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
  * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
  */
 
 #include <babeltrace/compiler-internal.h>
-#include <babeltrace/ctf-ir/packet.h>
+#include <babeltrace/trace-ir/packet.h>
 #include <babeltrace/graph/notification-internal.h>
+#include <babeltrace/trace-ir/clock-value-internal.h>
 #include <babeltrace/assert-internal.h>
 
 struct bt_notification_stream_begin {
        struct bt_notification parent;
        struct bt_stream *stream;
+       struct bt_clock_value *default_cv;
 };
 
 struct bt_notification_stream_end {
        struct bt_notification parent;
        struct bt_stream *stream;
+       struct bt_clock_value *default_cv;
 };
 
-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_GRAPH_NOTIFICATION_STREAM_INTERNAL_H */
This page took 0.0261 seconds and 4 git commands to generate.