35 #include <cx/array_list.h> |
35 #include <cx/array_list.h> |
36 #include "../ui/tree.h" |
36 #include "../ui/tree.h" |
37 #include "types.h" |
37 #include "types.h" |
38 #include "context.h" |
38 #include "context.h" |
39 |
39 |
|
40 |
|
41 |
40 UiObserver* ui_observer_new(ui_callback f, void *data) { |
42 UiObserver* ui_observer_new(ui_callback f, void *data) { |
41 UiObserver *observer = malloc(sizeof(UiObserver)); |
43 UiObserver *observer = malloc(sizeof(UiObserver)); |
42 observer->callback = f; |
44 observer->callback = f; |
43 observer->data = data; |
45 observer->data = data; |
44 observer->next = NULL; |
46 observer->next = NULL; |