From 31658e6e1486f1ee30c5e5dad6ffd0e3c72771a7 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Tue, 10 Sep 2019 14:29:06 +0200 Subject: [PATCH] efl: replace usage of ptr() in all stable APIs --- src/lib/ecore/efl_app.eo | 4 ++-- src/lib/ecore/efl_loop_consumer.eo | 4 ++-- src/lib/efl/interfaces/efl_file.eo | 2 +- src/lib/efl/interfaces/efl_file_save.eo | 2 +- src/lib/elementary/efl_access_text.eo | 4 ++-- src/lib/eo/efl_object.eo | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/ecore/efl_app.eo b/src/lib/ecore/efl_app.eo index 0e5d920659..f379e9a0ed 100644 --- a/src/lib/ecore/efl_app.eo +++ b/src/lib/ecore/efl_app.eo @@ -26,7 +26,7 @@ abstract Efl.App extends Efl.Loop implements Efl.Core.Command_Line ]] get {} values { - version: ptr(const(Efl.Version)); [[Efl build version]] + version: const(Efl.Version) @by_ref; [[Efl build version]] } } @property efl_version { @@ -36,7 +36,7 @@ abstract Efl.App extends Efl.Loop implements Efl.Core.Command_Line ]] get {} values { - version: ptr(const(Efl.Version)); [[Efl version]] + version: const(Efl.Version) @by_ref; [[Efl version]] } } } diff --git a/src/lib/ecore/efl_loop_consumer.eo b/src/lib/ecore/efl_loop_consumer.eo index 56045787ee..35053265ea 100644 --- a/src/lib/ecore/efl_loop_consumer.eo +++ b/src/lib/ecore/efl_loop_consumer.eo @@ -51,8 +51,8 @@ abstract Efl.Loop_Consumer extends Efl.Object promise_new @const { [[Create a new promise with the scheduler coming from the loop provided by this object. - Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]] - return: ptr(Eina.Promise) @move; [[The new promise.]] + Note: You should not use eina_promise_data_set as this function rely on controlling the promise data.]] + return: Eina.Promise @move @by_ref; [[The new promise.]] } } implements { diff --git a/src/lib/efl/interfaces/efl_file.eo b/src/lib/efl/interfaces/efl_file.eo index 7d1ee49114..3227af49c0 100644 --- a/src/lib/efl/interfaces/efl_file.eo +++ b/src/lib/efl/interfaces/efl_file.eo @@ -23,7 +23,7 @@ mixin Efl.File requires Efl.Object { ]] } values { - f: ptr(const(Eina.File)); [[The handle to the @Eina.File that will be used]] + f: const(Eina.File) @by_ref; [[The handle to the @Eina.File that will be used]] } } @property file { diff --git a/src/lib/efl/interfaces/efl_file_save.eo b/src/lib/efl/interfaces/efl_file_save.eo index 5f8274dd54..2340de9c77 100644 --- a/src/lib/efl/interfaces/efl_file_save.eo +++ b/src/lib/efl/interfaces/efl_file_save.eo @@ -35,7 +35,7 @@ interface Efl.File_Save { obligatory).]] @in key: string; [[The image key in the file (if an Eet one), or $null, otherwise.]] - @in info: const(ptr(Efl.File_Save_Info)); [[The flags to be used ($null for defaults).]] + @in info: const(Efl.File_Save_Info) @by_ref; [[The flags to be used ($null for defaults).]] } return: bool; [[$true on success, $false otherwise]] } diff --git a/src/lib/elementary/efl_access_text.eo b/src/lib/elementary/efl_access_text.eo index 4deb7ecb14..8e0d0ee1a7 100644 --- a/src/lib/elementary/efl_access_text.eo +++ b/src/lib/elementary/efl_access_text.eo @@ -19,14 +19,14 @@ enum @beta Efl.Access.Text_Clip_Type both [[Both clip types]] } -struct @free(elm_atspi_text_text_attribute_free) Efl.Access.Text_Attribute +struct @beta @free(elm_atspi_text_text_attribute_free) Efl.Access.Text_Attribute { [[Text attribute]] name: string; [[Text attribute name]] value: string; [[Text attribute value]] } -struct @free(elm_atspi_text_text_range_free) Efl.Access.Text_Range +struct @beta @free(elm_atspi_text_text_range_free) Efl.Access.Text_Range { [[Text range]] start_offset: int; [[Range start offset]] diff --git a/src/lib/eo/efl_object.eo b/src/lib/eo/efl_object.eo index 7a024bf01f..765bb6d6bd 100644 --- a/src/lib/eo/efl_object.eo +++ b/src/lib/eo/efl_object.eo @@ -330,7 +330,7 @@ abstract Efl.Object by inserting a handler at the right position in the stack of event handler on the object that emit the event.]] params { - @in desc: ptr(const(Efl.Event_Description)); [[The description of the event to listen to]] + @in desc: const(Efl.Event_Description) @by_ref; [[The description of the event to listen to]] @in priority: Efl.Callback_Priority; [[The priority at which to insert the event forwarder handler in the existing list of handler on the source of event object. The lower the number, the higher the priority. As a shortcut @Efl.Callback_Priority_Before, @@ -342,7 +342,7 @@ abstract Efl.Object event_callback_forwarder_del { [[Remove an event callback forwarder for a specified event and object.]] params { - @in desc: ptr(const(Efl.Event_Description)); [[The description of the event to listen to]] + @in desc: const(Efl.Event_Description) @by_ref; [[The description of the event to listen to]] @in new_obj: Efl.Object; [[The object to emit events from]] } }