summaryrefslogtreecommitdiff
path: root/new/uipriv.h
diff options
context:
space:
mode:
Diffstat (limited to 'new/uipriv.h')
-rw-r--r--new/uipriv.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/new/uipriv.h b/new/uipriv.h
index 02aa72b..4b150dd 100644
--- a/new/uipriv.h
+++ b/new/uipriv.h
@@ -18,3 +18,9 @@ struct uiControl {
void (*containerShow)(uiControl *);
void (*containerHide)(uiControl *);
};
+
+extern void *uiAlloc(size_t);
+// TODO use this in existing files
+#define uiNew(T) ((T *) uiAlloc(sizeof (T)))
+extern void *uiRealloc(void *, size_t);
+extern void uiFree(void *);