diff -r eb5269000bc8 -r eeb50c534497 ui/common/context.h --- a/ui/common/context.h Sun Dec 08 11:20:41 2013 +0000 +++ b/ui/common/context.h Fri Mar 21 13:20:53 2014 +0100 @@ -42,20 +42,25 @@ struct UiContext { UiObject *toplevel; UcxMempool *mempool; - UcxAllocator *allocator; UcxMap *vars; // key: char* value: UiVar* }; struct UiVar { - void *value; - int type; - int isextern; + void *value; + int type; + int isextern; + UcxMap *from; +}; + +enum UiVarType { + UI_VAR_INTEGER = 0, + UI_VAR_STRING }; UiContext* uic_context(UiObject *toplevel, UcxMempool *mp); - -UiVar* uic_getvar(UiObject *obj, char *name); -void uic_rmvar(UiObject *obj, char *name); +UiVar* uic_getvar(UiContext *ctx, char *name); +UiVar* uic_connect_var(UiContext *ctx, char *name, int type); +void* uic_create_value(UcxAllocator *a, int type); #ifdef __cplusplus