ui/common/types.c

branch
newapi
changeset 378
d41b1ffc5f77
parent 361
16c8b9ea3aa3
child 380
aad99285865c
equal deleted inserted replaced
377:3a60db9ebb5d 378:d41b1ffc5f77
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