ui/common/wrapper.c

changeset 1155
066fc6df92d1
parent 1150
34b7b8a9acdf
child 1168
2f9d8af6a499
equal deleted inserted replaced
1154:8f44450932d5 1155:066fc6df92d1
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;

mercurial