lib: add "borrow" functions where "get" functions exist
[babeltrace.git] / lib / graph / notification / inactivity.c
index 181625db16c880509a324e2315f30c09c6a86e86..b774d307673d358236e28e1c461edfb842adb10a 100644 (file)
@@ -104,7 +104,7 @@ end:
 }
 
 extern struct bt_clock_class_priority_map *
-bt_notification_inactivity_get_clock_class_priority_map(
+bt_notification_inactivity_borrow_clock_class_priority_map(
                struct bt_notification *notification)
 {
        struct bt_notification_inactivity *inactivity_notification;
@@ -114,10 +114,10 @@ bt_notification_inactivity_get_clock_class_priority_map(
                BT_NOTIFICATION_TYPE_INACTIVITY);
        inactivity_notification = container_of(notification,
                        struct bt_notification_inactivity, parent);
-       return bt_get(inactivity_notification->cc_prio_map);
+       return inactivity_notification->cc_prio_map;
 }
 
-struct bt_clock_value *bt_notification_inactivity_get_clock_value(
+struct bt_clock_value *bt_notification_inactivity_borrow_clock_value(
                struct bt_notification *notification,
                struct bt_clock_class *clock_class)
 {
@@ -129,8 +129,8 @@ struct bt_clock_value *bt_notification_inactivity_get_clock_value(
                BT_NOTIFICATION_TYPE_INACTIVITY);
        inactivity_notification = container_of(notification,
                struct bt_notification_inactivity, parent);
-       return bt_get(g_hash_table_lookup(
-               inactivity_notification->clock_values, clock_class));
+       return g_hash_table_lookup(
+               inactivity_notification->clock_values, clock_class);
 }
 
 BT_ASSERT_PRE_FUNC
@@ -154,7 +154,7 @@ int bt_notification_inactivity_set_clock_value(
 
        BT_ASSERT_PRE_NON_NULL(notification, "Notification");
        BT_ASSERT_PRE_NON_NULL(clock_value, "Clock value");
-       BT_ASSERT_PRE_HOT(notification, "notification",
+       BT_ASSERT_PRE_HOT(notification, "Notification",
                ": +%!+n", notification);
        BT_ASSERT_PRE_NOTIF_IS_TYPE(notification,
                BT_NOTIFICATION_TYPE_INACTIVITY);
This page took 0.024291 seconds and 4 git commands to generate.