| 69 void ui_mainthread_document_unref(void *doc) { |
69 void ui_mainthread_document_unref(void *doc) { |
| 70 // TODO: see ui_mainthread_object_unref |
70 // TODO: see ui_mainthread_object_unref |
| 71 ui_call_mainthread(doc_unref, doc); |
71 ui_call_mainthread(doc_unref, doc); |
| 72 } |
72 } |
| 73 |
73 |
| |
74 static int app_unref(void *unused) { |
| |
75 ui_app_unref(); |
| |
76 return 0; |
| |
77 } |
| |
78 |
| |
79 void ui_mainthread_app_unref() { |
| |
80 ui_call_mainthread(app_unref, NULL); |
| |
81 } |
| 74 |
82 |
| 75 /* ---------------------------- UiList ---------------------------- */ |
83 /* ---------------------------- UiList ---------------------------- */ |
| 76 |
84 |
| 77 void* ui_list_get_data(UiList *list) { |
85 void* ui_list_get_data(UiList *list) { |
| 78 return list->data; |
86 return list->data; |