summaryrefslogtreecommitdiff
path: root/src/lib/evas/gesture
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:09:44 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-04-17 20:31:55 +0200
commitfcae7cab276c2d3b19bb913ad908b67b7dd33089 (patch)
tree7008ebc815184309ccc284c9e7e1b05abbb55028 /src/lib/evas/gesture
parente50b43d02fdb0b608f2c99014357c95a1a746c43 (diff)
eolian gen: enable constness generation on property getter impls
This changes a lot of things all across the EFL. Previously, methods tagged @const had both their external prototype and internal impl generated with const on object, while property getters only had const on the external API. This is now changed and it all has const everywhere. Ref T6859.
Diffstat (limited to 'src/lib/evas/gesture')
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture.c6
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.c2
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer.c2
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_touch.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/evas/gesture/efl_canvas_gesture.c b/src/lib/evas/gesture/efl_canvas_gesture.c
index b0fca13..7386a90 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture.c
@@ -3,13 +3,13 @@
3#define MY_CLASS EFL_CANVAS_GESTURE_CLASS 3#define MY_CLASS EFL_CANVAS_GESTURE_CLASS
4 4
5EOLIAN static const Efl_Event_Description * 5EOLIAN static const Efl_Event_Description *
6 _efl_canvas_gesture_type_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd) 6 _efl_canvas_gesture_type_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
7{ 7{
8 return pd->type; 8 return pd->type;
9} 9}
10 10
11EOLIAN static Efl_Canvas_Gesture_State 11EOLIAN static Efl_Canvas_Gesture_State
12_efl_canvas_gesture_state_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd) 12_efl_canvas_gesture_state_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
13{ 13{
14 return pd->state; 14 return pd->state;
15} 15}
@@ -28,7 +28,7 @@ _efl_canvas_gesture_hotspot_set(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd
28 28
29 29
30EOLIAN static Eina_Vector2 30EOLIAN static Eina_Vector2
31_efl_canvas_gesture_hotspot_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd) 31_efl_canvas_gesture_hotspot_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Data *pd)
32{ 32{
33 return pd->hotspot; 33 return pd->hotspot;
34} 34}
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.c b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
index 57d1826..c8ea0d2 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.c
@@ -73,7 +73,7 @@ _efl_canvas_gesture_manager_efl_object_constructor(Eo *obj, Efl_Canvas_Gesture_M
73 73
74 74
75EOLIAN static Eina_Value * 75EOLIAN static Eina_Value *
76_efl_canvas_gesture_manager_config_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Manager_Data *pd, const char *name) 76_efl_canvas_gesture_manager_config_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Manager_Data *pd, const char *name)
77{ 77{
78 return eina_hash_find(pd->m_config, name); 78 return eina_hash_find(pd->m_config, name);
79} 79}
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
index c7e4b13..eac5f1c 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.c
@@ -3,7 +3,7 @@
3#define MY_CLASS EFL_CANVAS_GESTURE_RECOGNIZER_CLASS 3#define MY_CLASS EFL_CANVAS_GESTURE_RECOGNIZER_CLASS
4 4
5EOLIAN static Eina_Value * 5EOLIAN static Eina_Value *
6_efl_canvas_gesture_recognizer_config_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd, const char *name) 6_efl_canvas_gesture_recognizer_config_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Recognizer_Data *pd, const char *name)
7{ 7{
8 return efl_gesture_manager_config_get(pd->manager, name); 8 return efl_gesture_manager_config_get(pd->manager, name);
9} 9}
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_touch.c b/src/lib/evas/gesture/efl_canvas_gesture_touch.c
index 5fb493b..9f997f5 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_touch.c
+++ b/src/lib/evas/gesture/efl_canvas_gesture_touch.c
@@ -56,7 +56,7 @@ _efl_canvas_gesture_touch_efl_object_destructor(Eo *obj, Efl_Canvas_Gesture_Touc
56} 56}
57 57
58EOLIAN static Efl_Canvas_Gesture_Touch_State 58EOLIAN static Efl_Canvas_Gesture_Touch_State
59_efl_canvas_gesture_touch_state_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd) 59_efl_canvas_gesture_touch_state_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd)
60{ 60{
61 return pd->state; 61 return pd->state;
62} 62}
@@ -122,13 +122,13 @@ bad_fingers:
122} 122}
123 123
124EOLIAN static Eina_Bool 124EOLIAN static Eina_Bool
125_efl_canvas_gesture_touch_multi_touch_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd) 125_efl_canvas_gesture_touch_multi_touch_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd)
126{ 126{
127 return pd->multi_touch; 127 return pd->multi_touch;
128} 128}
129 129
130EOLIAN static Eina_Vector2 130EOLIAN static Eina_Vector2
131_efl_canvas_gesture_touch_start_point_get(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd) 131_efl_canvas_gesture_touch_start_point_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_Touch_Data *pd)
132{ 132{
133 int tool = 0; 133 int tool = 0;
134 Pointer_Data *point = eina_hash_find(pd->touch_points, &tool); 134 Pointer_Data *point = eina_hash_find(pd->touch_points, &tool);