evas/vg: add legacy api - evas_object_vg_mmap_set() 47/190147/1
authorHermet Park <hermetpark@gmail.com>
Thu, 27 Sep 2018 09:35:19 +0000 (18:35 +0900)
committerHermet Park <hermetpark@gmail.com>
Thu, 27 Sep 2018 09:36:47 +0000 (18:36 +0900)
Change-Id: Iaacf5db82da7332e3717cb9eaf08b8a76d61d5b1

src/lib/evas/Evas_Legacy.h
src/lib/evas/canvas/efl_canvas_vg.c

index 8a64694..0882175 100755 (executable)
@@ -3648,6 +3648,23 @@ EAPI Evas_Object *evas_object_vg_add(Evas *e) EINA_WARN_UNUSED_RESULT EINA_ARG_N
 EAPI int evas_object_vg_animated_frame_count_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
 
 /**
+ *
+ * Set the source mmaped file from where an vector object must fetch the real
+ * vector data (it must be an Eina_File).
+ *
+ * If the file supports multiple data stored in it (as Eet files do),
+ * you can specify the key to be used as the index of the image in
+ * this file.
+ *
+ * @since 1.22
+ *
+ * @param[in] f The mmaped file
+ * @param[in] key The vg key in @p file (if its an Eet one), or @c
+NULL, otherwise.
+ */
+EAPI Eina_Bool evas_object_vg_mmap_set(Evas_Object *obj, const Eina_File *f, char *key);
+
+/**
  * Set the frame to current frame of an animated vector.
  *
  * @param[in] frame_index The index of current frame.
index 94de192..a3401ba 100644 (file)
@@ -990,4 +990,10 @@ evas_object_vg_animated_frame_set(Evas_Object *obj, int frame_index)
    return efl_gfx_image_animated_frame_set(obj, frame_index);
 }
 
+EAPI Eina_Bool
+evas_object_vg_mmap_set(Evas_Object *obj, const Eina_File *f, char *key)
+{
+   return efl_file_mmap_set(obj, f, key);
+}
+
 #include "efl_canvas_vg.eo.c"