ui/common/context.h

changeset 167
161511838ea6
parent 163
b70e2a77dea0
child 168
1b99acacc5bb
--- a/ui/common/context.h	Tue Dec 08 15:19:31 2020 +0100
+++ b/ui/common/context.h	Thu Dec 10 13:42:25 2020 +0100
@@ -97,6 +97,8 @@
 };
 
 
+void uic_init_global_context(void);
+
 UiContext* uic_context(UiObject *toplevel, UcxMempool *mp);
 UiContext* uic_root_context(UiContext *ctx);
 void uic_context_set_document(UiContext *ctx, void *document); // deprecated
@@ -106,8 +108,8 @@
 void uic_context_detach_document2(UiContext *ctx, void *document);
 void uic_context_detach_all(UiContext *ctx);
 
-UiVar* uic_get_var(UiContext *ctx, char *name);
-UiVar* uic_create_var(UiContext *ctx, char *name, UiVarType type);
+UiVar* uic_get_var(UiContext *ctx, const char *name);
+UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type);
 void* uic_create_value(UiContext *ctx, UiVarType type);
 
 void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc);

mercurial