- for (i = 0; i < cc_prio_map->entries->len; i++) {
- struct bt_clock_value *clock_value;
- struct bt_clock_class *clock_class =
- cc_prio_map->entries->pdata[i];
-
- clock_value = bt_clock_value_create(clock_class);
- if (!clock_value) {
- BT_LIB_LOGE("Cannot create clock value from clock class: "
- "%![cc-]+K", clock_class);
- goto error;
- }
-
- g_hash_table_insert(notification->clock_values,
- clock_class, clock_value);
- }
-
- notification->cc_prio_map = bt_get(cc_prio_map);
- BT_LOGD_STR("Freezing inactivity notification's clock class priority map.");
- bt_clock_class_priority_map_freeze(cc_prio_map);
- BT_LOGD("Created inactivity notification object: "
- "cc-prio-map-addr=%p, notif-addr=%p",
- cc_prio_map, ret_notif);