--- a/ui/common/context.h Sun Oct 01 09:23:47 2023 +0200 +++ b/ui/common/context.h Sun Oct 01 12:08:09 2023 +0200 @@ -60,6 +60,7 @@ struct UiContext { UiContext *parent; UiObject *obj; + CxMempool *mp; const CxAllocator *allocator; void *document; @@ -102,7 +103,7 @@ void uic_init_global_context(void); -UiContext* uic_context(UiObject *toplevel, const CxAllocator *a); +UiContext* uic_context(UiObject *toplevel, CxMempool *mp); UiContext* uic_root_context(UiContext *ctx); void uic_context_set_document(UiContext *ctx, void *document); // deprecated void uic_context_detach_document(UiContext *ctx); // deprecated @@ -113,6 +114,7 @@ UiVar* uic_get_var(UiContext *ctx, const char *name); UiVar* uic_create_var(UiContext *ctx, const char *name, UiVarType type); +UiVar* uic_create_value_var(UiContext *ctx, void *value); void* uic_create_value(UiContext *ctx, UiVarType type); void uic_copy_binding(UiVar *from, UiVar *to, UiBool copytodoc);