@@ -34,9 +34,9 @@ void heap_listener_notify_alloc(uintptr_t heap_id, void *mem, size_t bytes)
34
34
k_spinlock_key_t key = k_spin_lock (& heap_listener_lock );
35
35
36
36
SYS_SLIST_FOR_EACH_CONTAINER (& heap_listener_list , listener , node ) {
37
- if (listener -> heap_id == heap_id && listener -> alloc_cb != NULL &&
37
+ if (listener -> heap_id == heap_id && listener -> cb . alloc != NULL &&
38
38
listener -> event == HEAP_ALLOC ) {
39
- listener -> alloc_cb (heap_id , mem , bytes );
39
+ listener -> cb . alloc (heap_id , mem , bytes );
40
40
}
41
41
}
42
42
@@ -49,9 +49,9 @@ void heap_listener_notify_free(uintptr_t heap_id, void *mem, size_t bytes)
49
49
k_spinlock_key_t key = k_spin_lock (& heap_listener_lock );
50
50
51
51
SYS_SLIST_FOR_EACH_CONTAINER (& heap_listener_list , listener , node ) {
52
- if (listener -> heap_id == heap_id && listener -> free_cb != NULL &&
52
+ if (listener -> heap_id == heap_id && listener -> cb . free != NULL &&
53
53
listener -> event == HEAP_FREE ) {
54
- listener -> free_cb (heap_id , mem , bytes );
54
+ listener -> cb . free (heap_id , mem , bytes );
55
55
}
56
56
}
57
57
@@ -64,9 +64,9 @@ void heap_listener_notify_resize(uintptr_t heap_id, void *old_heap_end, void *ne
64
64
k_spinlock_key_t key = k_spin_lock (& heap_listener_lock );
65
65
66
66
SYS_SLIST_FOR_EACH_CONTAINER (& heap_listener_list , listener , node ) {
67
- if (listener -> heap_id == heap_id && listener -> resize_cb != NULL &&
67
+ if (listener -> heap_id == heap_id && listener -> cb . resize != NULL &&
68
68
listener -> event == HEAP_RESIZE ) {
69
- listener -> resize_cb (heap_id , old_heap_end , new_heap_end );
69
+ listener -> cb . resize (heap_id , old_heap_end , new_heap_end );
70
70
}
71
71
}
72
72
0 commit comments