--- a/ui/common/types.c Tue Feb 06 11:44:48 2024 +0100 +++ b/ui/common/types.c Wed Feb 07 17:15:03 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]); }