lib: rename bt_plugin_create_all_*() -> bt_plugin_find_all_*()
[babeltrace.git] / include / babeltrace / graph / notification-event-internal.h
index 62b8a3ab727ffd5c92c3a9f2597b4463886d2a04..ff165e3460f04be16403a6c847d328bf6890c21d 100644 (file)
@@ -2,12 +2,9 @@
 #define BABELTRACE_GRAPH_NOTIFICATION_EVENT_INTERNAL_H
 
 /*
- * BabelTrace - Plug-in Event Notification internal
- *
+ * Copyright 2017-2018 Philippe Proulx <pproulx@efficios.com>
  * Copyright 2016 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * Author: Jérémie Galarneau <jeremie.galarneau@efficios.com>
- *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to deal
  * in the Software without restriction, including without limitation the rights
@@ -28,9 +25,9 @@
  */
 
 #include <babeltrace/compiler-internal.h>
-#include <babeltrace/ctf-ir/event.h>
+#include <babeltrace/trace-ir/event-class.h>
+#include <babeltrace/trace-ir/event.h>
 #include <babeltrace/graph/notification-internal.h>
-#include <babeltrace/graph/clock-class-priority-map.h>
 #include <babeltrace/assert-internal.h>
 
 #ifdef __cplusplus
@@ -40,32 +37,16 @@ extern "C" {
 struct bt_notification_event {
        struct bt_notification parent;
        struct bt_event *event;
-       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_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_HIDDEN
+struct bt_notification *bt_notification_event_new(struct bt_graph *graph);
 
-       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
 }
This page took 0.023729 seconds and 4 git commands to generate.