summaryrefslogtreecommitdiff
path: root/src/lib/emotion
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/emotion
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/emotion')
-rw-r--r--src/lib/emotion/emotion_smart.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/emotion/emotion_smart.c b/src/lib/emotion/emotion_smart.c
index c0ce707..3985103 100644
--- a/src/lib/emotion/emotion_smart.c
+++ b/src/lib/emotion/emotion_smart.c
@@ -412,7 +412,7 @@ emotion_object_file_get(const Evas_Object *obj)
412} 412}
413 413
414EOLIAN static void 414EOLIAN static void
415_efl_canvas_video_efl_file_file_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, const char **file, const char **key) 415_efl_canvas_video_efl_file_file_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd, const char **file, const char **key)
416{ 416{
417 if (file) *file = sd->file; 417 if (file) *file = sd->file;
418 if (key) *key = NULL; 418 if (key) *key = NULL;
@@ -648,7 +648,7 @@ emotion_object_play_get(const Evas_Object *obj)
648} 648}
649 649
650EOLIAN static Eina_Bool 650EOLIAN static Eina_Bool
651_efl_canvas_video_efl_player_play_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 651_efl_canvas_video_efl_player_play_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
652{ 652{
653 if (!sd->engine_instance) return EINA_FALSE; 653 if (!sd->engine_instance) return EINA_FALSE;
654 return sd->play; 654 return sd->play;
@@ -686,7 +686,7 @@ emotion_object_position_get(const Evas_Object *obj)
686} 686}
687 687
688EOLIAN static double 688EOLIAN static double
689_efl_canvas_video_efl_player_pos_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 689_efl_canvas_video_efl_player_pos_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
690{ 690{
691 if (!sd->engine_instance) return 0.0; 691 if (!sd->engine_instance) return 0.0;
692 sd->pos = emotion_engine_instance_pos_get(sd->engine_instance); 692 sd->pos = emotion_engine_instance_pos_get(sd->engine_instance);
@@ -746,7 +746,7 @@ emotion_object_size_get(const Evas_Object *obj, int *iw, int *ih)
746} 746}
747 747
748EOLIAN static Eina_Size2D 748EOLIAN static Eina_Size2D
749_efl_canvas_video_efl_image_load_load_size_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 749_efl_canvas_video_efl_image_load_load_size_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
750{ 750{
751 // FIXME: Shouldn't this be efl_gfx_view_size instead? 751 // FIXME: Shouldn't this be efl_gfx_view_size instead?
752 return EINA_SIZE2D(sd->video.w, sd->video.h); 752 return EINA_SIZE2D(sd->video.w, sd->video.h);
@@ -771,7 +771,7 @@ emotion_object_smooth_scale_get(const Evas_Object *obj)
771} 771}
772 772
773EOLIAN static Eina_Bool 773EOLIAN static Eina_Bool
774_efl_canvas_video_efl_image_smooth_scale_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 774_efl_canvas_video_efl_image_smooth_scale_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
775{ 775{
776 return evas_object_image_smooth_scale_get(sd->obj); 776 return evas_object_image_smooth_scale_get(sd->obj);
777} 777}
@@ -783,7 +783,7 @@ emotion_object_ratio_get(const Evas_Object *obj)
783} 783}
784 784
785EOLIAN static double 785EOLIAN static double
786_efl_canvas_video_efl_image_ratio_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 786_efl_canvas_video_efl_image_ratio_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
787{ 787{
788 if (!sd->engine_instance) return 0.0; 788 if (!sd->engine_instance) return 0.0;
789 return sd->ratio; 789 return sd->ratio;
@@ -823,7 +823,7 @@ emotion_object_audio_volume_get(const Evas_Object *obj)
823} 823}
824 824
825EOLIAN static double 825EOLIAN static double
826_efl_canvas_video_efl_player_volume_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 826_efl_canvas_video_efl_player_volume_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
827{ 827{
828 if (!sd->engine_instance) return 0.0; 828 if (!sd->engine_instance) return 0.0;
829 return emotion_engine_instance_audio_channel_volume_get(sd->engine_instance); 829 return emotion_engine_instance_audio_channel_volume_get(sd->engine_instance);
@@ -850,7 +850,7 @@ emotion_object_audio_mute_get(const Evas_Object *obj)
850} 850}
851 851
852EOLIAN static Eina_Bool 852EOLIAN static Eina_Bool
853_efl_canvas_video_efl_player_mute_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 853_efl_canvas_video_efl_player_mute_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
854{ 854{
855 if (!sd->engine_instance) return EINA_FALSE; 855 if (!sd->engine_instance) return EINA_FALSE;
856 return emotion_engine_instance_audio_channel_mute_get(sd->engine_instance); 856 return emotion_engine_instance_audio_channel_mute_get(sd->engine_instance);
@@ -1140,13 +1140,13 @@ emotion_object_progress_status_get(const Evas_Object *obj)
1140} 1140}
1141 1141
1142EOLIAN static double 1142EOLIAN static double
1143_efl_canvas_video_efl_player_progress_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 1143_efl_canvas_video_efl_player_progress_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
1144{ 1144{
1145 return sd->progress.stat; 1145 return sd->progress.stat;
1146} 1146}
1147 1147
1148EOLIAN static double 1148EOLIAN static double
1149_efl_canvas_video_efl_player_length_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 1149_efl_canvas_video_efl_player_length_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
1150{ 1150{
1151 if (!sd->engine_instance) return 0.0; 1151 if (!sd->engine_instance) return 0.0;
1152 sd->len = emotion_engine_instance_len_get(sd->engine_instance); 1152 sd->len = emotion_engine_instance_len_get(sd->engine_instance);
@@ -1154,7 +1154,7 @@ _efl_canvas_video_efl_player_length_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Da
1154} 1154}
1155 1155
1156EOLIAN static Eina_Bool 1156EOLIAN static Eina_Bool
1157_efl_canvas_video_efl_player_seekable_get(Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd) 1157_efl_canvas_video_efl_player_seekable_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Video_Data *sd)
1158{ 1158{
1159 if (!sd->engine_instance) return EINA_FALSE; 1159 if (!sd->engine_instance) return EINA_FALSE;
1160 return emotion_engine_instance_seekable(sd->engine_instance); 1160 return emotion_engine_instance_seekable(sd->engine_instance);