lib: make graph API const-correct
[babeltrace.git] / lib / graph / notification / event.c
index 9b09bc42f4414f200586f2023bd03574af423346..303a65204476b98906afb80f0dbeca17f7b71acb 100644 (file)
@@ -33,7 +33,8 @@
 #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>
@@ -75,7 +76,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 +190,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.023439 seconds and 4 git commands to generate.