X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=lib%2Fgraph%2Fnotification%2Finactivity.c;h=97e505655f47094266d271f0dee88827691d3d3a;hb=7b53201cfb06ec02f4203e28458dfbcf53d87988;hp=46adbd8f2257da90613f812b365b6fe519d5d720;hpb=3a2cb327fd24e53a9b163372b9079003dd422655;p=babeltrace.git diff --git a/lib/graph/notification/inactivity.c b/lib/graph/notification/inactivity.c index 46adbd8f..97e50565 100644 --- a/lib/graph/notification/inactivity.c +++ b/lib/graph/notification/inactivity.c @@ -28,7 +28,8 @@ #include #include #include -#include +#include +#include #include #include #include @@ -48,7 +49,7 @@ void bt_notification_inactivity_destroy(struct bt_object *obj) g_free(notification); } -struct bt_private_notification *bt_private_notification_inactivity_create( +struct bt_notification *bt_notification_inactivity_create( struct bt_self_notification_iterator *self_notif_iter, struct bt_clock_class *default_clock_class) { @@ -86,11 +87,9 @@ end: return (void *) ret_notif; } -void bt_private_notification_inactivity_set_default_clock_value( - struct bt_private_notification *priv_notif, - uint64_t value_cycles) +void bt_notification_inactivity_set_default_clock_value( + struct bt_notification *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"); @@ -101,8 +100,9 @@ void bt_private_notification_inactivity_set_default_clock_value( "%![notif-]+n, value=%" PRIu64, notif, value_cycles); } -struct bt_clock_value *bt_notification_inactivity_borrow_default_clock_value( - struct bt_notification *notif) +const struct bt_clock_value * +bt_notification_inactivity_borrow_default_clock_value_const( + const struct bt_notification *notif) { struct bt_notification_inactivity *inactivity = (void *) notif;