622 UiObserverDestructor *destr = cxMalloc(mp->allocator, sizeof(UiObserverDestructor)); |
622 UiObserverDestructor *destr = cxMalloc(mp->allocator, sizeof(UiObserverDestructor)); |
623 destr->list = list; |
623 destr->list = list; |
624 destr->observer = observer; |
624 destr->observer = observer; |
625 cxMempoolSetDestructor(destr, (cx_destructor_func)observer_destructor); |
625 cxMempoolSetDestructor(destr, (cx_destructor_func)observer_destructor); |
626 } |
626 } |
|
627 |
|
628 static int ui_set_op = 0; |
|
629 |
|
630 void ui_setop_enable(int set) { |
|
631 ui_set_op = set; |
|
632 } |
|
633 |
|
634 int ui_get_setop(void) { |
|
635 return ui_set_op; |
|
636 } |