jackdanielz pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=3d1323042d2631d822f583f8f64d4d48e56d97c1

commit 3d1323042d2631d822f583f8f64d4d48e56d97c1
Author: Daniel Zaoui <[email protected]>
Date:   Thu Apr 3 10:24:44 2014 +0300

    Eolian: use legacy_prefix: null for interfaces.
    
    legacy set to null was used for every function to not generate a legacy
    API. legacy_prefix set to null indicates no legacy has to be generated
    for all the class.
---
 src/lib/ecore_audio/ecore_audio.eo     | 14 ++------------
 src/lib/ecore_audio/ecore_audio_in.eo  | 18 +-----------------
 src/lib/ecore_audio/ecore_audio_out.eo |  6 ++----
 3 files changed, 5 insertions(+), 33 deletions(-)

diff --git a/src/lib/ecore_audio/ecore_audio.eo 
b/src/lib/ecore_audio/ecore_audio.eo
index 4f85787..b5dcf99 100644
--- a/src/lib/ecore_audio/ecore_audio.eo
+++ b/src/lib/ecore_audio/ecore_audio.eo
@@ -1,5 +1,6 @@
 class Ecore_Audio (Eo_Base)
 {
+   legacy_prefix: null;
    eo_prefix: ecore_audio_obj;
    data: Ecore_Audio_Object;
    properties {
@@ -9,14 +10,12 @@ class Ecore_Audio (Eo_Base)
             Set the name of the object
             
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the name of the object
             
             @since 1.8 */
-            legacy null;
          }
          values {
             const char *name; 
@@ -28,14 +27,12 @@ class Ecore_Audio (Eo_Base)
             Set the pause state of the object
             
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the pause state of the object
             
             @since 1.8 */
-            legacy null;
          }
          values {
             Eina_Bool paused; /*ret EINA_TRUE if object is paused, EINA_FALSE 
if not*/
@@ -47,14 +44,12 @@ class Ecore_Audio (Eo_Base)
             Set the volume of the object
             
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the volume of the object
             
             @since 1.8 */
-            legacy null;
          }
          values {
             double volume; /*The volume*/
@@ -69,7 +64,6 @@ class Ecore_Audio (Eo_Base)
             the libsndfile class accepts WAV, OGG, FLAC files as source.
             
             @since 1.8 */
-            legacy null;
             return Eina_Bool; /*EINA_TRUE if the source was set correctly 
(i.e. the file was opened), EINA_FALSE otherwise*/
          }
          get {
@@ -77,7 +71,6 @@ class Ecore_Audio (Eo_Base)
             Get the source of the object
             
             @since 1.8 */
-            legacy null;
          }
          values {
             const char *source; /*The source to set to (i.e. file, URL, 
device)*/
@@ -92,7 +85,6 @@ class Ecore_Audio (Eo_Base)
             ECORE_AUDIO_FORMAT_AUTO
             
             @since 1.8 */
-            legacy null;
             return Eina_Bool; /*EINA_TRUE if the format was supported, 
EINA_FALSE otherwise*/
          }
          get {
@@ -103,7 +95,6 @@ class Ecore_Audio (Eo_Base)
             function will now return the actual format.
             
             @since 1.8 */
-            legacy null;
          }
          values {
             Ecore_Audio_Format format; /*The format of the object*/
@@ -116,7 +107,6 @@ class Ecore_Audio (Eo_Base)
          Set the virtual IO functions
          
          @since 1.8 */
-         legacy null;
          params {
               Ecore_Audio_Vio *vio; /*The @ref Ecore_Audio_Vio struct with the 
function callbacks*/
               void *data; /*User data to pass to the VIO functions*/
@@ -132,4 +122,4 @@ class Ecore_Audio (Eo_Base)
       virtual::format::set;
       virtual::vio_set;
    }
-}
\ No newline at end of file
+}
diff --git a/src/lib/ecore_audio/ecore_audio_in.eo 
b/src/lib/ecore_audio/ecore_audio_in.eo
index 3b8f683..5347c3f 100644
--- a/src/lib/ecore_audio/ecore_audio_in.eo
+++ b/src/lib/ecore_audio/ecore_audio_in.eo
@@ -1,5 +1,6 @@
 class Ecore_Audio_In (Ecore_Audio)
 {
+   legacy_prefix: null;
    eo_prefix: ecore_audio_obj_in;
    data: Ecore_Audio_Input;
       properties {
@@ -9,14 +10,12 @@ class Ecore_Audio_In (Ecore_Audio)
             Set the playback speed of the input.
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the playback speed of the input.
 
             @since 1.8 */
-            legacy null;
          }
          values {
             double speed; /*The speed, 1.0 is the default*/
@@ -28,14 +27,12 @@ class Ecore_Audio_In (Ecore_Audio)
             Set the sample-rate of the input
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the he sample-rate of the input
 
             @since 1.8 */
-            legacy null;
          }
          values {
             int samplerate; /*The samplerate in Hz*/
@@ -47,14 +44,12 @@ class Ecore_Audio_In (Ecore_Audio)
             Set the amount of channels the input has
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the amount of channels the input has
 
             @since 1.8 */
-            legacy null;
          }
          values {
             int channels; /*The number of channels*/
@@ -66,14 +61,12 @@ class Ecore_Audio_In (Ecore_Audio)
             Set the preloaded state of the input
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the the preloaded state of the input
 
             @since 1.8 */
-            legacy null;
          }
          values {
             Eina_Bool preloaded; /*EINA_TRUE if the input should be cached, 
EINA_FALSE otherwise*/
@@ -89,14 +82,12 @@ class Ecore_Audio_In (Ecore_Audio)
             will be emitted
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the looped state of the input
 
             @since 1.8 */
-            legacy null;
          }
          values {
             Eina_Bool looped; /*EINA_TRUE if the input should be looped, 
EINA_FALSE otherwise*/
@@ -111,14 +102,12 @@ class Ecore_Audio_In (Ecore_Audio)
             (i.e. ECORE_AUDIO_OBJ_IN_TONE_CLASS)
 
             @since 1.8 */
-            legacy null;
          }
          get {
             /*@
             Get the length of the input
 
             @since 1.8 */
-            legacy null;
          }
          values {
             double length; /*The length of the input in seconds*/
@@ -130,7 +119,6 @@ class Ecore_Audio_In (Ecore_Audio)
             Get the output that this input is attached to
 
             @since 1.8 */
-            legacy null;
          }
          values {
             Eo *output; /*The output*/
@@ -142,7 +130,6 @@ class Ecore_Audio_In (Ecore_Audio)
             Get the remaining time of the input
 
             @since 1.8 */
-            legacy null;
          }
          values {
             double remaining; /*The amount of time in seconds left to play*/
@@ -155,7 +142,6 @@ class Ecore_Audio_In (Ecore_Audio)
          Read from the input
 
          @since 1.8 */
-         legacy null;
          return ssize_t; /*The amount of samples written to buf*/
          params {
             @in void *buf; /*The buffer to read into*/
@@ -167,7 +153,6 @@ class Ecore_Audio_In (Ecore_Audio)
          Internal read function
 
          @since 1.8 */
-         legacy null;
          return ssize_t; /*The amount of samples written to buf*/
          params {
             @in void *buf; /*The buffer to read into*/
@@ -179,7 +164,6 @@ class Ecore_Audio_In (Ecore_Audio)
          Seek within the input
 
          @since 1.8 */
-         legacy null;
          return double; /*The current absolute position in seconds within the 
input*/
          params {
             @in double offs; /*The offset in seconds*/
diff --git a/src/lib/ecore_audio/ecore_audio_out.eo 
b/src/lib/ecore_audio/ecore_audio_out.eo
index 4b9ef89..843309a 100644
--- a/src/lib/ecore_audio/ecore_audio_out.eo
+++ b/src/lib/ecore_audio/ecore_audio_out.eo
@@ -1,5 +1,6 @@
 class Ecore_Audio_Out (Ecore_Audio)
 {
+   legacy_prefix: null;
    eo_prefix: ecore_audio_obj_out;
    data: Ecore_Audio_Output;
    methods {
@@ -8,7 +9,6 @@ class Ecore_Audio_Out (Ecore_Audio)
          Attach an input to an output
 
          @since 1.8 */
-         legacy null;
          return Eina_Bool; /*EINA_TRUE if the input was attached, EINA_FALSE 
otherwise*/
          params {
             @in Eo *input; /*The input to attach to the output*/
@@ -19,7 +19,6 @@ class Ecore_Audio_Out (Ecore_Audio)
          Detach an input from an output
 
          @since 1.8 */
-         legacy null;
          return Eina_Bool; /*EINA_TRUE if the input was detached, EINA_FALSE 
otherwise*/
          params {
             @in Eo *input; /*he input to detach to the output*/
@@ -30,7 +29,6 @@ class Ecore_Audio_Out (Ecore_Audio)
          Returns the list of all attached inputs
 
          @since 1.8 */
-         legacy null;
          return Eina_List *; /*An @ref Eina_List of the inputs that are 
attached to the output*/
       }
    }
@@ -39,4 +37,4 @@ class Ecore_Audio_Out (Ecore_Audio)
       Eo_Base::destructor;
       Ecore_Audio::vio_set;
    }
-}
\ No newline at end of file
+}

-- 


Reply via email to