#ifndef _EVAS_LOADER_H
#define _EVAS_LOADER_H
+#include "eina_stringshare.h"
+
typedef struct _Evas_Image_Load_Opts Evas_Image_Load_Opts;
typedef struct _Evas_Image_Animated Evas_Image_Animated;
typedef struct _Evas_Image_Property Evas_Image_Property;
struct _Evas_Image_Load_Func
{
- void *(*file_open) (Eina_File *f, const char *key,
+ void *(*file_open) (Eina_File *f, Eina_Stringshare *key,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated,
int *error);
}
static void *
-evas_image_load_file_open_bmp(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_bmp(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
};
static void *
-evas_image_load_file_open_eet(Eina_File *f, const char *key,
+evas_image_load_file_open_eet(Eina_File *f, Eina_Stringshare *key,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
return NULL;
}
- loader->key = eina_stringshare_add(key);
+ loader->key = eina_stringshare_ref(key);
return loader;
}
}
static void *
-evas_image_load_file_open_generic(Eina_File *f, const char *key,
+evas_image_load_file_open_generic(Eina_File *f, Eina_Stringshare *key,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
}
loader->f = f;
- loader->key = eina_stringshare_add(key);
+ loader->key = eina_stringshare_ref(key);
loader->opts = opts;
return loader;
}
return length;
}
static void *
-evas_image_load_file_open_gif(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_gif(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated,
int *error)
};
static void *
-evas_image_load_file_open_ico(Eina_File *f, const char *key,
+evas_image_load_file_open_ico(Eina_File *f, Eina_Stringshare *key,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
}
loader->f = f;
- loader->key = eina_stringshare_add(key);
+ loader->key = eina_stringshare_ref(key);
loader->opts = opts;
return loader;
#endif
static void *
-evas_image_load_file_open_jpeg(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_jpeg(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
static int pmaps_buffer_comment_skip(Pmaps_Buffer *b);
static void *
-evas_image_load_file_open_pmaps(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_pmaps(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
}
static void *
-evas_image_load_file_open_png(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_png(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts,
Evas_Image_Animated *animated EINA_UNUSED,
int *error)
}
static void *
-evas_image_load_file_open_psd(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_psd(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
} __attribute__((packed));
static void *
-evas_image_load_file_open_tga(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_tga(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
}
static void *
-evas_image_load_file_open_tiff(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_tiff(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
}
static void *
-evas_image_load_file_open_wbmp(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_wbmp(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
}
static void *
-evas_image_load_file_open_webp(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_webp(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)
}
static void *
-evas_image_load_file_open_xpm(Eina_File *f, const char *key EINA_UNUSED,
+evas_image_load_file_open_xpm(Eina_File *f, Eina_Stringshare *key EINA_UNUSED,
Evas_Image_Load_Opts *opts EINA_UNUSED,
Evas_Image_Animated *animated EINA_UNUSED,
int *error EINA_UNUSED)