add missing UIEXPORT newapi

Wed, 07 Feb 2024 17:15:03 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 07 Feb 2024 17:15:03 +0100
branch
newapi
changeset 246
b19f3098dd11
parent 245
06e655d15b17
child 247
4b21af9d8c5a

add missing UIEXPORT

ui/common/types.c file | annotate | diff | comparison | revisions
ui/ui/toolkit.h file | annotate | diff | comparison | revisions
--- 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]);
     }
--- a/ui/ui/toolkit.h	Tue Feb 06 11:44:48 2024 +0100
+++ b/ui/ui/toolkit.h	Wed Feb 07 17:15:03 2024 +0100
@@ -460,8 +460,8 @@
 UIEXPORT void  ui_list_addobsv(UiList *list, ui_callback f, void *data);
 UIEXPORT void  ui_list_notify(UiList *list);
 
-UiFileList ui_filelist_copy(UiFileList list);
-void ui_filelist_free(UiFileList list);
+UIEXPORT UiFileList ui_filelist_copy(UiFileList list);
+UIEXPORT void ui_filelist_free(UiFileList list);
 
 UIEXPORT void ui_clipboard_set(char *str);
 UIEXPORT char* ui_clipboard_get();
@@ -485,8 +485,8 @@
 UIEXPORT UiIcon* ui_fileicon(size_t size);
 
 
-UiStr ui_str(char *cstr);
-UiStr ui_str_free(char *str, void (*free)(void *v));
+UIEXPORT UiStr ui_str(char *cstr);
+UIEXPORT UiStr ui_str_free(char *str, void (*free)(void *v));
 
 #ifdef	__cplusplus
 }

mercurial