gesture_manager: Add a call to get private data
authorDerek Foreman <derek.foreman.samsung@gmail.com>
Thu, 24 Jan 2019 17:32:08 +0000 (11:32 -0600)
committerTaehyub Kim <taehyub.kim@samsung.com>
Thu, 31 Jan 2019 01:53:55 +0000 (10:53 +0900)
We end up looking this up multiple times, having a getter will sometimes
allow us to get it and use it multiple times.

Differential Revision: https://phab.enlightenment.org/D7762

Signed-off-by: Derek Foreman <derek.foreman.samsung@gmail.com>
src/lib/evas/gesture/efl_canvas_gesture_manager.c
src/lib/evas/include/evas_private.h

index c8ea0d2..793c0db 100644 (file)
@@ -97,6 +97,14 @@ _efl_canvas_gesture_manager_efl_object_destructor(Eo *obj, Efl_Canvas_Gesture_Ma
    efl_destructor(efl_super(obj, MY_CLASS));
 }
 
+void *
+_efl_canvas_gesture_manager_private_data_get(Eo *obj)
+{
+   Efl_Canvas_Gesture_Manager_Data *pd = efl_data_scope_get(obj, MY_CLASS);
+
+   return pd;
+}
+
 void
 _efl_canvas_gesture_manager_callback_add_hook(Eo *obj, Eo *target, const Efl_Event_Description *type)
 {
index cac2daf..e92789c 100755 (executable)
@@ -1916,6 +1916,7 @@ void efl_canvas_output_info_get(Evas_Public_Data *e, Efl_Canvas_Output *output);
 void evas_object_pixels_get_force(Evas_Object *eo_obj, Evas_Object_Protected_Data *obj);
 
 // Gesture Manager
+void *_efl_canvas_gesture_manager_private_data_get(Eo *obj);
 void _efl_canvas_gesture_manager_filter_event(Eo *gesture_manager, Eo *target, void *event);
 void _efl_canvas_gesture_manager_callback_del_hook(Eo *gesture_manager, Eo *target, const Efl_Event_Description *type);
 void _efl_canvas_gesture_manager_callback_add_hook(Eo *gesture_manager, Eo *target, const Efl_Event_Description *type);