}
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;
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)
{
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
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);