*/
#include <babeltrace/compiler-internal.h>
+#include <babeltrace/ctf-ir/event-class.h>
#include <babeltrace/ctf-ir/event.h>
#include <babeltrace/graph/notification-internal.h>
#include <babeltrace/graph/clock-class-priority-map.h>
struct bt_clock_class_priority_map *cc_prio_map;
};
-static inline
-struct bt_event *bt_notification_event_borrow_event(
- struct bt_notification *notif)
-{
- struct bt_notification_event *notif_event = container_of(notif,
- struct bt_notification_event, parent);
+BT_HIDDEN
+struct bt_notification *bt_notification_event_new(struct bt_graph *graph);
- BT_ASSERT(notif_event);
- return notif_event->event;
-}
-
-static inline
-struct bt_clock_class_priority_map *
-bt_notification_event_borrow_clock_class_priority_map(
- struct bt_notification *notif)
-{
- struct bt_notification_event *notif_event = container_of(notif,
- struct bt_notification_event, parent);
-
- BT_ASSERT(notif_event);
- return notif_event->cc_prio_map;
-}
+BT_HIDDEN
+void bt_notification_event_recycle(struct bt_notification *notif);
+BT_HIDDEN
+void bt_notification_event_destroy(struct bt_notification *notif);
#ifdef __cplusplus
}