--- a/ui/common/context.h Sun Apr 06 08:50:27 2025 +0200 +++ b/ui/common/context.h Sun Apr 06 13:28:35 2025 +0200 @@ -93,8 +93,9 @@ // UiVar replacement, rename it to UiVar when finished struct UiVar { void *value; + void *original_value; UiVarType type; - UiVar *from; + UiVar *from; UiContext *from_ctx; }; @@ -117,6 +118,8 @@ void uic_context_attach_document(UiContext *ctx, void *document); void uic_context_detach_document2(UiContext *ctx, void *document); +void uic_context_attach_context(UiContext *ctx, UiContext *doc_ctx); +void uic_context_detach_context(UiContext *ctx, UiContext *doc_ctx); void uic_context_detach_all(UiContext *ctx); UiVar* uic_get_var(UiContext *ctx, const char *name);