ui/common/types.c

changeset 76
641dcc79e0ef
parent 65
48f43130b4a2
child 80
1a908b060122
equal deleted inserted replaced
75:73c8a3780c72 76:641dcc79e0ef
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;

mercurial