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.
This commit is contained in:
parent
653aebb47d
commit
3d1323042d
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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*/
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue