summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio
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/ecore_audio
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/ecore_audio')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj.c4
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_in.c17
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c4
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c4
4 files changed, 15 insertions, 14 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj.c b/src/lib/ecore_audio/ecore_audio_obj.c
index e2f3c81..a526706 100644
--- a/src/lib/ecore_audio/ecore_audio_obj.c
+++ b/src/lib/ecore_audio/ecore_audio_obj.c
@@ -26,7 +26,7 @@ _ecore_audio_paused_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj, Eina_Bo
26} 26}
27 27
28EOLIAN static Eina_Bool 28EOLIAN static Eina_Bool
29_ecore_audio_paused_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj) 29_ecore_audio_paused_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj)
30{ 30{
31 return obj->paused; 31 return obj->paused;
32} 32}
@@ -38,7 +38,7 @@ _ecore_audio_volume_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj, double
38} 38}
39 39
40EOLIAN static double 40EOLIAN static double
41_ecore_audio_volume_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj) 41_ecore_audio_volume_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj)
42{ 42{
43 return obj->volume; 43 return obj->volume;
44} 44}
diff --git a/src/lib/ecore_audio/ecore_audio_obj_in.c b/src/lib/ecore_audio/ecore_audio_obj_in.c
index ff8bd5b..b2a8f91 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in.c
@@ -31,7 +31,7 @@ _ecore_audio_in_speed_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj, double
31} 31}
32 32
33EOLIAN static double 33EOLIAN static double
34_ecore_audio_in_speed_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 34_ecore_audio_in_speed_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
35{ 35{
36 return obj->speed; 36 return obj->speed;
37} 37}
@@ -45,7 +45,7 @@ _ecore_audio_in_samplerate_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj, i
45} 45}
46 46
47EOLIAN static int 47EOLIAN static int
48_ecore_audio_in_samplerate_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 48_ecore_audio_in_samplerate_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
49{ 49{
50 return obj->samplerate;; 50 return obj->samplerate;;
51} 51}
@@ -60,7 +60,7 @@ _ecore_audio_in_channels_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj, int
60} 60}
61 61
62EOLIAN static int 62EOLIAN static int
63_ecore_audio_in_channels_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 63_ecore_audio_in_channels_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
64{ 64{
65 return obj->channels; 65 return obj->channels;
66} 66}
@@ -72,24 +72,25 @@ _ecore_audio_in_looped_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj, Eina_
72} 72}
73 73
74EOLIAN static Eina_Bool 74EOLIAN static Eina_Bool
75_ecore_audio_in_looped_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 75_ecore_audio_in_looped_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
76{ 76{
77 return obj->looped; 77 return obj->looped;
78} 78}
79 79
80EOLIAN static double 80EOLIAN static double
81_ecore_audio_in_length_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 81_ecore_audio_in_length_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
82{ 82{
83 return obj->length;; 83 return obj->length;;
84} 84}
85 85
86EOLIAN static double 86EOLIAN static double
87_ecore_audio_in_remaining_get(Eo *eo_obj, Ecore_Audio_Input *obj) 87_ecore_audio_in_remaining_get(const Eo *eo_obj, Ecore_Audio_Input *obj)
88{ 88{
89 if (!obj->seekable) return -1; 89 if (!obj->seekable) return -1;
90 else { 90 else {
91 double ret = 0.0; 91 double ret = 0.0;
92 ret = ecore_audio_obj_in_seek(eo_obj, 0, SEEK_CUR); 92 /* XXX const */
93 ret = ecore_audio_obj_in_seek((Eo *)eo_obj, 0, SEEK_CUR);
93 return obj->length - ret; 94 return obj->length - ret;
94 } 95 }
95} 96}
@@ -134,7 +135,7 @@ _ecore_audio_in_read_internal(Eo *eo_obj, Ecore_Audio_Input *_pd EINA_UNUSED, vo
134} 135}
135 136
136EOLIAN static Eo* 137EOLIAN static Eo*
137_ecore_audio_in_output_get(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj) 138_ecore_audio_in_output_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Input *obj)
138{ 139{
139 return obj->output; 140 return obj->output;
140} 141}
diff --git a/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c b/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
index 6af8a99..bebfba5 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in_sndfile.c
@@ -90,7 +90,7 @@ _ecore_audio_in_sndfile_ecore_audio_source_set(Eo *eo_obj, Ecore_Audio_In_Sndfil
90} 90}
91 91
92EOLIAN static const char* 92EOLIAN static const char*
93_ecore_audio_in_sndfile_ecore_audio_source_get(Eo *eo_obj, Ecore_Audio_In_Sndfile_Data *_pd EINA_UNUSED) 93_ecore_audio_in_sndfile_ecore_audio_source_get(const Eo *eo_obj, Ecore_Audio_In_Sndfile_Data *_pd EINA_UNUSED)
94{ 94{
95 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS); 95 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
96 return obj->source; 96 return obj->source;
@@ -129,7 +129,7 @@ _ecore_audio_in_sndfile_ecore_audio_format_set(Eo *eo_obj, Ecore_Audio_In_Sndfil
129} 129}
130 130
131EOLIAN static Ecore_Audio_Format 131EOLIAN static Ecore_Audio_Format
132_ecore_audio_in_sndfile_ecore_audio_format_get(Eo *eo_obj, Ecore_Audio_In_Sndfile_Data *_pd EINA_UNUSED) 132_ecore_audio_in_sndfile_ecore_audio_format_get(const Eo *eo_obj, Ecore_Audio_In_Sndfile_Data *_pd EINA_UNUSED)
133{ 133{
134 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS); 134 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
135 return obj->format;; 135 return obj->format;;
diff --git a/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c b/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
index 8b5e216..2c0b4ba 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_out_sndfile.c
@@ -116,7 +116,7 @@ _ecore_audio_out_sndfile_ecore_audio_source_set(Eo *eo_obj, Ecore_Audio_Out_Sndf
116} 116}
117 117
118EOLIAN static const char* 118EOLIAN static const char*
119_ecore_audio_out_sndfile_ecore_audio_source_get(Eo *eo_obj, Ecore_Audio_Out_Sndfile_Data *_pd EINA_UNUSED) 119_ecore_audio_out_sndfile_ecore_audio_source_get(const Eo *eo_obj, Ecore_Audio_Out_Sndfile_Data *_pd EINA_UNUSED)
120{ 120{
121 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS); 121 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
122 return obj->source; 122 return obj->source;
@@ -155,7 +155,7 @@ _ecore_audio_out_sndfile_ecore_audio_format_set(Eo *eo_obj, Ecore_Audio_Out_Sndf
155} 155}
156 156
157EOLIAN static Ecore_Audio_Format 157EOLIAN static Ecore_Audio_Format
158_ecore_audio_out_sndfile_ecore_audio_format_get(Eo *eo_obj, Ecore_Audio_Out_Sndfile_Data *_pd EINA_UNUSED) 158_ecore_audio_out_sndfile_ecore_audio_format_get(const Eo *eo_obj, Ecore_Audio_Out_Sndfile_Data *_pd EINA_UNUSED)
159{ 159{
160 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS); 160 Ecore_Audio_Object *obj = efl_data_scope_get(eo_obj, ECORE_AUDIO_CLASS);
161 return obj->format; 161 return obj->format;