lib: rename bt_plugin_create_all_*() -> bt_plugin_find_all_*()
[babeltrace.git] / lib / graph / notification / event.c
index 9b09bc42f4414f200586f2023bd03574af423346..3321af220abee0717ffedb50b8f83e5446d905e9 100644 (file)
@@ -1,8 +1,7 @@
 /*
+ * 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
@@ -25,6 +24,8 @@
 #define BT_LOG_TAG "NOTIF-EVENT"
 #include <babeltrace/lib-logging-internal.h>
 
+#include <babeltrace/assert-internal.h>
+#include <babeltrace/assert-pre-internal.h>
 #include <babeltrace/compiler-internal.h>
 #include <babeltrace/object-internal.h>
 #include <babeltrace/trace-ir/event.h>
 #include <babeltrace/trace-ir/stream-class-internal.h>
 #include <babeltrace/trace-ir/trace.h>
 #include <babeltrace/graph/graph-internal.h>
-#include <babeltrace/graph/private-notification-event.h>
+#include <babeltrace/graph/notification-event-const.h>
+#include <babeltrace/graph/notification-event.h>
 #include <babeltrace/graph/notification-event-internal.h>
 #include <babeltrace/types.h>
-#include <babeltrace/assert-internal.h>
-#include <babeltrace/assert-pre-internal.h>
-#include <babeltrace/object.h>
 #include <stdbool.h>
 #include <inttypes.h>
 
@@ -49,7 +48,7 @@ static inline bool event_class_has_trace(struct bt_event_class *event_class)
 
        stream_class = bt_event_class_borrow_stream_class(event_class);
        BT_ASSERT(stream_class);
-       return bt_stream_class_borrow_trace(stream_class) != NULL;
+       return bt_stream_class_borrow_trace_class(stream_class) != NULL;
 }
 
 BT_HIDDEN
@@ -75,7 +74,7 @@ end:
        return (void *) notification;
 }
 
-struct bt_private_notification *bt_private_notification_event_create(
+struct bt_notification *bt_notification_event_create(
                struct bt_self_notification_iterator *self_notif_iter,
                struct bt_event_class *event_class,
                struct bt_packet *packet)
@@ -189,14 +188,14 @@ struct bt_event *borrow_event(struct bt_notification *notification)
        return event_notification->event;
 }
 
-struct bt_event *bt_private_notification_event_borrow_event(
-               struct bt_private_notification *notification)
+struct bt_event *bt_notification_event_borrow_event(
+               struct bt_notification *notification)
 {
-       return borrow_event((void *) notification);
+       return borrow_event(notification);
 }
 
-const struct bt_event *bt_notification_event_borrow_event(
-               struct bt_notification *notification)
+const struct bt_event *bt_notification_event_borrow_event_const(
+               const struct bt_notification *notification)
 {
-       return borrow_event(notification);
+       return borrow_event((void *) notification);
 }
This page took 0.023935 seconds and 4 git commands to generate.