Trace IR and notification APIs: split into private and public APIs
[babeltrace.git] / lib / graph / notification / inactivity.c
index 605942e72ccda8fdf174ad289875413b18ce922d..3ca527c8440b552865c827d9d4a3429d997b2e0c 100644 (file)
 #include <babeltrace/trace-ir/clock-class.h>
 #include <babeltrace/trace-ir/clock-value-internal.h>
 #include <babeltrace/graph/notification-internal.h>
+#include <babeltrace/graph/private-notification-inactivity.h>
 #include <babeltrace/graph/notification-inactivity-internal.h>
 #include <babeltrace/graph/private-connection-private-notification-iterator.h>
 #include <babeltrace/assert-pre-internal.h>
+#include <babeltrace/object.h>
 
 static
 void bt_notification_inactivity_destroy(struct bt_object *obj)
@@ -47,7 +49,7 @@ void bt_notification_inactivity_destroy(struct bt_object *obj)
        g_free(notification);
 }
 
-struct bt_notification *bt_notification_inactivity_create(
+struct bt_private_notification *bt_private_notification_inactivity_create(
                struct bt_private_connection_private_notification_iterator *notif_iter,
                struct bt_clock_class *default_clock_class)
 {
@@ -79,12 +81,14 @@ error:
        BT_OBJECT_PUT_REF_AND_RESET(ret_notif);
 
 end:
-       return ret_notif;
+       return (void *) ret_notif;
 }
 
-int bt_notification_inactivity_set_default_clock_value(
-               struct bt_notification *notif, uint64_t value_cycles)
+int bt_private_notification_inactivity_set_default_clock_value(
+               struct bt_private_notification *priv_notif,
+               uint64_t value_cycles)
 {
+       struct bt_notification *notif = (void *) priv_notif;
        struct bt_notification_inactivity *inactivity = (void *) notif;
 
        BT_ASSERT_PRE_NON_NULL(notif, "Notification");
This page took 0.02329 seconds and 4 git commands to generate.