ui/common/types.c

branch
newapi
changeset 241
c51dd0e9ecb7
parent 231
e160bb392148
child 243
9f66c31a27ed
--- a/ui/common/types.c	Tue Jan 30 12:10:41 2024 +0100
+++ b/ui/common/types.c	Tue Jan 30 13:10:16 2024 +0100
@@ -456,3 +456,13 @@
     l->update = NULL;
     l->obj = NULL;
 }
+
+
+
+UiStr ui_str(char *cstr) {
+    return (UiStr) { cstr, NULL };
+}
+
+UiStr ui_str_free(char *str, void (*freefunc)(void *v)) {
+    return (UiStr) { str, freefunc };
+}

mercurial