# HG changeset patch
# User Olaf Wintermann <olaf.wintermann@gmail.com>
# Date 1741894988 -3600
# Node ID 3688266cab3c046864c92023352718395ae1c4d4
# Parent  bf53d553e3dcaf561038d051c1282dd7bb2d5d66
add missing setop functions

diff -r bf53d553e3dc -r 3688266cab3c ui/common/types.c
--- 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;
+}
diff -r bf53d553e3dc -r 3688266cab3c ui/ui/toolkit.h
--- 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
 }