ui/common/types.c

changeset 19
813c97c5b6d3
parent 18
af411868ab9b
child 26
40d6af793c1a
--- a/ui/common/types.c	Tue Feb 06 14:17:22 2024 +0100
+++ b/ui/common/types.c	Tue Feb 06 19:01:52 2024 +0100
@@ -459,16 +459,16 @@
 
 
 
-UiStr ui_str(char *cstr) {
+UIEXPORT UiStr ui_str(char *cstr) {
     return (UiStr) { cstr, NULL };
 }
 
-UiStr ui_str_free(char *str, void (*freefunc)(void *v)) {
+UIEXPORT UiStr ui_str_free(char *str, void (*freefunc)(void *v)) {
     return (UiStr) { str, freefunc };
 }
 
 
-UiFileList ui_filelist_copy(UiFileList list) {
+UIEXPORT UiFileList ui_filelist_copy(UiFileList list) {
     char **newlist = calloc(sizeof(char*), list.nfiles);
     for (int i = 0; i < list.nfiles; i++) {
         newlist[i] = strdup(list.files[i]);
@@ -476,7 +476,7 @@
     return (UiFileList) { newlist, list.nfiles };
 }
 
-void ui_filelist_free(UiFileList list) {
+UIEXPORT void ui_filelist_free(UiFileList list) {
     for (int i = 0; i < list.nfiles; i++) {
         free(list.files[i]);
     }

mercurial