include/babeltrace/graph: fix some include guards
[babeltrace.git] / include / babeltrace / graph / notification-event-internal.h
index de4a6a1260f996a90bec561ad1b08ce84dffe17f..62b8a3ab727ffd5c92c3a9f2597b4463886d2a04 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef BABELTRACE_COMPONENT_NOTIFICATION_EVENT_INTERNAL_H
-#define BABELTRACE_COMPONENT_NOTIFICATION_EVENT_INTERNAL_H
+#ifndef BABELTRACE_GRAPH_NOTIFICATION_EVENT_INTERNAL_H
+#define BABELTRACE_GRAPH_NOTIFICATION_EVENT_INTERNAL_H
 
 /*
  * BabelTrace - Plug-in Event Notification internal
@@ -31,6 +31,7 @@
 #include <babeltrace/ctf-ir/event.h>
 #include <babeltrace/graph/notification-internal.h>
 #include <babeltrace/graph/clock-class-priority-map.h>
+#include <babeltrace/assert-internal.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -38,18 +39,18 @@ extern "C" {
 
 struct bt_notification_event {
        struct bt_notification parent;
-       struct bt_ctf_event *event;
+       struct bt_event *event;
        struct bt_clock_class_priority_map *cc_prio_map;
 };
 
 static inline
-struct bt_ctf_event *bt_notification_event_borrow_event(
+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);
 
-       assert(notif_event);
+       BT_ASSERT(notif_event);
        return notif_event->event;
 }
 
@@ -61,7 +62,7 @@ bt_notification_event_borrow_clock_class_priority_map(
        struct bt_notification_event *notif_event = container_of(notif,
                        struct bt_notification_event, parent);
 
-       assert(notif_event);
+       BT_ASSERT(notif_event);
        return notif_event->cc_prio_map;
 }
 
@@ -70,4 +71,4 @@ bt_notification_event_borrow_clock_class_priority_map(
 }
 #endif
 
-#endif /* BABELTRACECOMPONENTPLUGIN_NOTIFICATION_EVENT_INTERNAL_H */
+#endif /* BABELTRACE_GRAPH_NOTIFICATION_EVENT_INTERNAL_H */
This page took 0.024576 seconds and 4 git commands to generate.