add missing setop functions

7 days ago

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 13 Mar 2025 20:43:08 +0100 (7 days ago)
changeset 498
3688266cab3c
parent 497
bf53d553e3dc
child 499
0a386bd871be

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
 }

mercurial