photocam: remove internal_image_get as eo api
authorAmitesh Singh <amitesh.sh@samsung.com>
Wed, 17 May 2017 02:33:13 +0000 (11:33 +0900)
committerAmitesh Singh <amitesh.sh@samsung.com>
Wed, 17 May 2017 07:40:50 +0000 (16:40 +0900)
and mark it as legacy API instead.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
src/lib/elementary/elm_photocam.c
src/lib/elementary/elm_photocam.eo
src/lib/elementary/elm_photocam_legacy.h

index 37e99d6..262accf 100644 (file)
@@ -2257,12 +2257,6 @@ _elm_photocam_paused_get(Eo *obj EINA_UNUSED, Elm_Photocam_Data *sd)
    return sd->paused;
 }
 
-EOLIAN static Evas_Object*
-_elm_photocam_internal_image_get(Eo *obj EINA_UNUSED, Elm_Photocam_Data *sd)
-{
-   return sd->img;
-}
-
 EAPI void
 elm_photocam_bounce_set(Evas_Object *obj,
                         Eina_Bool h_bounce,
@@ -2452,3 +2446,11 @@ elm_photocam_image_orient_get(const Eo *obj)
 }
 
 #include "elm_photocam.eo.c"
+
+EAPI Evas_Object*
+elm_photocam_internal_image_get(const Evas_Object *obj)
+{
+   ELM_PHOTOCAM_DATA_GET_OR_RETURN_VAL(obj, sd, NULL);
+
+   return sd->img;
+}
\ No newline at end of file
index b80fa00..fe48709 100644 (file)
@@ -125,17 +125,6 @@ class Elm.Photocam (Elm.Widget, Elm.Interface_Scrollable,
             h: int; [[A pointer to the height]]
          }
       }
-      @property internal_image {
-         get {
-            [[Get the internal low-res image used for photocam
-
-              This gets the internal image object inside photocam. Do not
-              modify it. It is for inspection only, and hooking callbacks
-              to. Nothing else. It may be deleted at any time as well.
-            ]]
-            return: Efl.Canvas.Object; [[The internal image object handle or $null]]
-         }
-      }
       @property image_size {
          get {
             [[Get the current image pixel width and height
index d3bc84a..29b15bb 100644 (file)
@@ -81,4 +81,17 @@ EAPI void elm_photocam_image_orient_set(Evas_Object *obj, Evas_Image_Orient orie
  */
 EAPI Evas_Image_Orient elm_photocam_image_orient_get(const Evas_Object *obj);
 
+/**
+ * @brief Get the internal low-res image used for photocam
+ *
+ * This gets the internal image object inside photocam. Do not modify it. It is
+ * for inspection only, and hooking callbacks to. Nothing else. It may be
+ * deleted at any time as well.
+ *
+ * @return The internal image object handle or @c null
+ *
+ * @ingroup Elm_Photocam
+ */
+EAPI Evas_Object*      elm_photocam_internal_image_get(const Evas_Object *obj);
+
 #include "elm_photocam.eo.legacy.h"