7 days ago
add missing setop functions
ui/common/types.c | file | annotate | diff | comparison | revisions | |
ui/ui/toolkit.h | file | annotate | diff | comparison | revisions |
--- a/ui/common/types.c Thu Mar 13 18:40:17 2025 +0100 +++ b/ui/common/types.c Thu Mar 13 20:43:08 2025 +0100 @@ -624,3 +624,13 @@ destr->observer = observer; cxMempoolSetDestructor(destr, (cx_destructor_func)observer_destructor); } + +static int ui_set_op = 0; + +void ui_setop_enable(int set) { + ui_set_op = set; +} + +int ui_get_setop(void) { + return ui_set_op; +}
--- a/ui/ui/toolkit.h Thu Mar 13 18:40:17 2025 +0100 +++ b/ui/ui/toolkit.h Thu Mar 13 20:43:08 2025 +0100 @@ -596,7 +596,7 @@ UIEXPORT void ui_condvar_destroy(UiCondVar *var); UIEXPORT void ui_setop_enable(int set); -UIEXPORT void ui_get_setop(void); +UIEXPORT int ui_get_setop(void); #ifdef __cplusplus }