summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-15 16:57:44 +0200
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-09-15 16:57:44 +0200
commit9622511df0ee3fed5d87609ff04ffb515fc11bec (patch)
tree13283480fe40dea8cd42d201a09c08de414d0e8d /src/lib
parent8f6ba61011bc13cd3c6288ea36d8ffa365fda543 (diff)
efl interfaces: convert to new ownership
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edje/edje_object.eo2
-rw-r--r--src/lib/efl/interfaces/efl_canvas.eo6
-rw-r--r--src/lib/efl/interfaces/efl_config.eo4
-rw-r--r--src/lib/efl/interfaces/efl_container.eo2
-rw-r--r--src/lib/efl/interfaces/efl_input_device.eo2
-rw-r--r--src/lib/efl/interfaces/efl_io_buffer.eo2
-rw-r--r--src/lib/efl/interfaces/efl_observable.eo4
-rw-r--r--src/lib/efl/interfaces/efl_pack.eo4
-rw-r--r--src/lib/efl/interfaces/efl_pack_grid.eo4
-rw-r--r--src/lib/efl/interfaces/efl_pack_linear.eo10
-rw-r--r--src/lib/efl/interfaces/efl_text_annotate.eo3
-rw-r--r--src/lib/efl/interfaces/efl_ui_menu.eo2
-rw-r--r--src/lib/efl/interfaces/efl_vpath.eo2
-rw-r--r--src/lib/efl/interfaces/efl_vpath_manager.eo2
14 files changed, 24 insertions, 25 deletions
diff --git a/src/lib/edje/edje_object.eo b/src/lib/edje/edje_object.eo
index 4a30f6d..19528b1 100644
--- a/src/lib/edje/edje_object.eo
+++ b/src/lib/edje/edje_object.eo
@@ -319,7 +319,7 @@ class Edje.Object (Efl.Canvas.Group, Efl.File, Efl.Container, Efl.Part,
319 access_part_iterate { 319 access_part_iterate {
320 [[Iterates over all accessibility-enabled part names.]] 320 [[Iterates over all accessibility-enabled part names.]]
321 legacy: null; 321 legacy: null;
322 return: free(own(iterator<string>), eina_iterator_free); [[Part name iterator]] 322 return: iterator<string> @owned; [[Part name iterator]]
323 } 323 }
324 part_exists @const { 324 part_exists @const {
325 [[Checks if a part exists in a given Edje object's group definition. 325 [[Checks if a part exists in a given Edje object's group definition.
diff --git a/src/lib/efl/interfaces/efl_canvas.eo b/src/lib/efl/interfaces/efl_canvas.eo
index 5105d4a..2740d5f 100644
--- a/src/lib/efl/interfaces/efl_canvas.eo
+++ b/src/lib/efl/interfaces/efl_canvas.eo
@@ -42,7 +42,7 @@ interface Efl.Canvas ()
42 objects, acting only on the ones at the "top level", with 42 objects, acting only on the ones at the "top level", with
43 regard to object parenting. 43 regard to object parenting.
44 ]] 44 ]]
45 return: free(own(iterator<Efl.Gfx>), eina_iterator_free) @warn_unused; [[ 45 return: iterator<Efl.Gfx> @owned @warn_unused; [[
46 The list of objects that are over the given position in $e. 46 The list of objects that are over the given position in $e.
47 ]] 47 ]]
48 params { 48 params {
@@ -99,7 +99,7 @@ interface Efl.Canvas ()
99 objects, acting only on the ones at the "top level", with 99 objects, acting only on the ones at the "top level", with
100 regard to object parenting. 100 regard to object parenting.
101 ]] 101 ]]
102 return: free(own(iterator<Efl.Gfx>), eina_iterator_free) @warn_unused; [[Iterator to objects]] 102 return: iterator<Efl.Gfx> @owned @warn_unused; [[Iterator to objects]]
103 params { 103 params {
104 @in x: int; [[ 104 @in x: int; [[
105 The top left corner's horizontal coordinate for the 105 The top left corner's horizontal coordinate for the
@@ -165,7 +165,7 @@ interface Efl.Canvas ()
165 165
166 @since 1.20 166 @since 1.20
167 ]] 167 ]]
168 return: own(free(iterator<Efl.Input.Device>, eina_iterator_free)); 168 return: iterator<Efl.Input.Device> @owned;
169 [[An iterator over the attached seats.]] 169 [[An iterator over the attached seats.]]
170 } 170 }
171 @property device { 171 @property device {
diff --git a/src/lib/efl/interfaces/efl_config.eo b/src/lib/efl/interfaces/efl_config.eo
index 27ac9fc..e6c64b6 100644
--- a/src/lib/efl/interfaces/efl_config.eo
+++ b/src/lib/efl/interfaces/efl_config.eo
@@ -17,14 +17,14 @@ interface Efl.Config ()
17 params { 17 params {
18 name: string; [[Configuration option name]] 18 name: string; [[Configuration option name]]
19 } 19 }
20 return: free(own(ptr(generic_value)), eina_value_free); [[Configuration option value]] 20 return: free(ptr(generic_value), eina_value_free) @owned; [[Configuration option value]]
21 } 21 }
22 config_list_get @const { 22 config_list_get @const {
23 [[Returns a list of generic values under a given key.]] 23 [[Returns a list of generic values under a given key.]]
24 params { 24 params {
25 @in name: string; [[Configuration option name]] 25 @in name: string; [[Configuration option name]]
26 } 26 }
27 return: free(own(iterator<ptr(generic_value)>), eina_iterator_free); [[ 27 return: iterator<ptr(generic_value)> @owned; [[
28 List of configuration option values]] 28 List of configuration option values]]
29 } 29 }
30 } 30 }
diff --git a/src/lib/efl/interfaces/efl_container.eo b/src/lib/efl/interfaces/efl_container.eo
index 4b3fc57..a673cce 100644
--- a/src/lib/efl/interfaces/efl_container.eo
+++ b/src/lib/efl/interfaces/efl_container.eo
@@ -27,7 +27,7 @@ interface Efl.Container (Efl.Gfx)
27 } 27 }
28 content_iterate { 28 content_iterate {
29 [[Begin iterating over this object's contents.]] 29 [[Begin iterating over this object's contents.]]
30 return: free(own(iterator<Efl.Gfx>), eina_iterator_free) @warn_unused; [[Iterator to object content]] 30 return: iterator<Efl.Gfx> @owned @warn_unused; [[Iterator to object content]]
31 } 31 }
32 content_count { 32 content_count {
33 [[Returns the number of UI elements packed in this container.]] 33 [[Returns the number of UI elements packed in this container.]]
diff --git a/src/lib/efl/interfaces/efl_input_device.eo b/src/lib/efl/interfaces/efl_input_device.eo
index b2ab520..0efe918 100644
--- a/src/lib/efl/interfaces/efl_input_device.eo
+++ b/src/lib/efl/interfaces/efl_input_device.eo
@@ -71,7 +71,7 @@ class Efl.Input.Device (Efl.Object)
71 71
72 @since 1.20 72 @since 1.20
73 ]] 73 ]]
74 return: own(free(iterator<const(Efl.Input.Device)>, eina_iterator_free)); [[List of device children]] 74 return: iterator<const(Efl.Input.Device)> @owned; [[List of device children]]
75 } 75 }
76 has_pointer_caps { 76 has_pointer_caps {
77 [[Determine whether a device has pointer capabilities. 77 [[Determine whether a device has pointer capabilities.
diff --git a/src/lib/efl/interfaces/efl_io_buffer.eo b/src/lib/efl/interfaces/efl_io_buffer.eo
index 316686f..9c51ff6 100644
--- a/src/lib/efl/interfaces/efl_io_buffer.eo
+++ b/src/lib/efl/interfaces/efl_io_buffer.eo
@@ -132,7 +132,7 @@ class Efl.Io.Buffer (Efl.Object, Efl.Io.Reader, Efl.Io.Writer, Efl.Io.Closer, Ef
132 On failure, for example a read-only backing store was 132 On failure, for example a read-only backing store was
133 adopted with @.adopt_readonly, NULL is returned. 133 adopted with @.adopt_readonly, NULL is returned.
134 ]] 134 ]]
135 return: free(own(ptr(Eina.Binbuf)), eina_binbuf_free) @warn_unused; [[Binbuf]] 135 return: free(ptr(Eina.Binbuf), eina_binbuf_free) @owned @warn_unused; [[Binbuf]]
136 } 136 }
137 } 137 }
138 138
diff --git a/src/lib/efl/interfaces/efl_observable.eo b/src/lib/efl/interfaces/efl_observable.eo
index 683c64f..002a495 100644
--- a/src/lib/efl/interfaces/efl_observable.eo
+++ b/src/lib/efl/interfaces/efl_observable.eo
@@ -36,7 +36,7 @@ class Efl.Observable (Efl.Object) {
36 [[Return a new iterator associated with a group of observers. 36 [[Return a new iterator associated with a group of observers.
37 37
38 @since 1.19]] 38 @since 1.19]]
39 return: free(own(iterator<Efl.Observer>), eina_iterator_free); [[Iterator for observers group]] 39 return: iterator<Efl.Observer> @owned; [[Iterator for observers group]]
40 params { 40 params {
41 @in key: string; [[A key to classify observer groups]] 41 @in key: string; [[A key to classify observer groups]]
42 } 42 }
@@ -54,7 +54,7 @@ class Efl.Observable (Efl.Object) {
54 [[Return a new iterator associated to this observable. 54 [[Return a new iterator associated to this observable.
55 55
56 @since 1.19]] 56 @since 1.19]]
57 return: free(own(iterator<Efl.Observable.Tuple>), eina_iterator_free); [[Iterator for observer]] 57 return: iterator<Efl.Observable.Tuple> @owned; [[Iterator for observer]]
58 } 58 }
59 } 59 }
60 implements { 60 implements {
diff --git a/src/lib/efl/interfaces/efl_pack.eo b/src/lib/efl/interfaces/efl_pack.eo
index 53f4055..8b9a789 100644
--- a/src/lib/efl/interfaces/efl_pack.eo
+++ b/src/lib/efl/interfaces/efl_pack.eo
@@ -19,7 +19,7 @@ interface Efl.Pack (Efl.Container)
19 unpack { 19 unpack {
20 [[Removes an existing item from the container, without deleting it.]] 20 [[Removes an existing item from the container, without deleting it.]]
21 params { 21 params {
22 subobj: own(Efl.Gfx); [[Unpacked object]] 22 subobj: Efl.Gfx @owned; [[Unpacked object]]
23 } 23 }
24 return: bool; [[$false if $subobj wasn't a child or can't be removed]] 24 return: bool; [[$false if $subobj wasn't a child or can't be removed]]
25 } 25 }
@@ -34,7 +34,7 @@ interface Efl.Pack (Efl.Container)
34 failed, the object will be unrefed. 34 failed, the object will be unrefed.
35 ]] 35 ]]
36 params { 36 params {
37 subobj: own(Efl.Gfx); [[Packed object]] 37 subobj: Efl.Gfx @owned; [[Packed object]]
38 } 38 }
39 return: bool; [[$false if $subobj could not be packed.]] 39 return: bool; [[$false if $subobj could not be packed.]]
40 } 40 }
diff --git a/src/lib/efl/interfaces/efl_pack_grid.eo b/src/lib/efl/interfaces/efl_pack_grid.eo
index 1f1f21f..73b9d3b 100644
--- a/src/lib/efl/interfaces/efl_pack_grid.eo
+++ b/src/lib/efl/interfaces/efl_pack_grid.eo
@@ -8,7 +8,7 @@ interface Efl.Pack.Grid (Efl.Pack.Linear)
8 pack_grid { 8 pack_grid {
9 [[Pack object on the grid]] 9 [[Pack object on the grid]]
10 params { 10 params {
11 subobj: own(Efl.Gfx); [[Object]] 11 subobj: Efl.Gfx @owned; [[Object]]
12 col: int; [[Column number]] 12 col: int; [[Column number]]
13 row: int; [[Row number]] 13 row: int; [[Row number]]
14 colspan: int @optional; [[0 means 1, -1 means @.grid_columns]] 14 colspan: int @optional; [[0 means 1, -1 means @.grid_columns]]
@@ -18,7 +18,7 @@ interface Efl.Pack.Grid (Efl.Pack.Linear)
18 } 18 }
19 grid_contents_get { 19 grid_contents_get {
20 [[Returns all objects at a given position in this grid.]] 20 [[Returns all objects at a given position in this grid.]]
21 return: free(own(iterator<Efl.Gfx>), eina_iterator_free); [[Iterator to grid contents]] 21 return: iterator<Efl.Gfx> @owned; [[Iterator to grid contents]]
22 params { 22 params {
23 @in col: int; [[Column number]] 23 @in col: int; [[Column number]]
24 @in row: int; [[Row number]] 24 @in row: int; [[Row number]]
diff --git a/src/lib/efl/interfaces/efl_pack_linear.eo b/src/lib/efl/interfaces/efl_pack_linear.eo
index 58ce717..c8ee058 100644
--- a/src/lib/efl/interfaces/efl_pack_linear.eo
+++ b/src/lib/efl/interfaces/efl_pack_linear.eo
@@ -9,7 +9,7 @@ interface Efl.Pack.Linear (Efl.Pack)
9 This is the same as @.pack_at($subobj, 0). 9 This is the same as @.pack_at($subobj, 0).
10 ]] 10 ]]
11 params { 11 params {
12 @in subobj: own(Efl.Gfx); [[Item to pack.]] 12 @in subobj: Efl.Gfx @owned; [[Item to pack.]]
13 } 13 }
14 return: bool; [[$false if $subobj could not be packed]] 14 return: bool; [[$false if $subobj could not be packed]]
15 } 15 }
@@ -19,14 +19,14 @@ interface Efl.Pack.Linear (Efl.Pack)
19 This is the same as @.pack_at($subobj, -1). 19 This is the same as @.pack_at($subobj, -1).
20 ]] 20 ]]
21 params { 21 params {
22 @in subobj: own(Efl.Gfx); [[Item to pack.]] 22 @in subobj: Efl.Gfx @owned; [[Item to pack.]]
23 } 23 }
24 return: bool; [[$false if $subobj could not be packed]] 24 return: bool; [[$false if $subobj could not be packed]]
25 } 25 }
26 pack_before { 26 pack_before {
27 [[Prepend item before other sub object.]] 27 [[Prepend item before other sub object.]]
28 params { 28 params {
29 @in subobj: own(Efl.Gfx); [[Item to pack.]] 29 @in subobj: Efl.Gfx @owned; [[Item to pack.]]
30 @in existing: const(Efl.Gfx); [[Item to refer to.]] 30 @in existing: const(Efl.Gfx); [[Item to refer to.]]
31 } 31 }
32 return: bool; [[$false if $existing could not be found or $subobj 32 return: bool; [[$false if $existing could not be found or $subobj
@@ -35,7 +35,7 @@ interface Efl.Pack.Linear (Efl.Pack)
35 pack_after { 35 pack_after {
36 [[Append item after other sub object.]] 36 [[Append item after other sub object.]]
37 params { 37 params {
38 @in subobj: own(Efl.Gfx); [[Item to pack.]] 38 @in subobj: Efl.Gfx @owned; [[Item to pack.]]
39 @in existing: const(Efl.Gfx); [[Item to refer to.]] 39 @in existing: const(Efl.Gfx); [[Item to refer to.]]
40 } 40 }
41 return: bool; [[$false if $existing could not be found or $subobj 41 return: bool; [[$false if $existing could not be found or $subobj
@@ -48,7 +48,7 @@ interface Efl.Pack.Linear (Efl.Pack)
48 Out of range indices will trigger an append. 48 Out of range indices will trigger an append.
49 ]] 49 ]]
50 params { 50 params {
51 @in subobj: own(Efl.Gfx); [[Item to pack.]] 51 @in subobj: Efl.Gfx @owned; [[Item to pack.]]
52 @in index: int; [[A position.]] 52 @in index: int; [[A position.]]
53 } 53 }
54 return: bool; [[$false if $subobj could not be packed]] 54 return: bool; [[$false if $subobj could not be packed]]
diff --git a/src/lib/efl/interfaces/efl_text_annotate.eo b/src/lib/efl/interfaces/efl_text_annotate.eo
index fbdb4ee..0025053 100644
--- a/src/lib/efl/interfaces/efl_text_annotate.eo
+++ b/src/lib/efl/interfaces/efl_text_annotate.eo
@@ -43,8 +43,7 @@ interface Efl.Text.Annotate {
43 @in start: ptr(const(Efl.Text.Cursor.Cursor)); [[Start of range]] 43 @in start: ptr(const(Efl.Text.Cursor.Cursor)); [[Start of range]]
44 @in end: ptr(const(Efl.Text.Cursor.Cursor)); [[End of range]] 44 @in end: ptr(const(Efl.Text.Cursor.Cursor)); [[End of range]]
45 } 45 }
46 return: free(own(iterator<ptr(Efl.Text.Annotate.Annotation)>), 46 return: iterator<ptr(Efl.Text.Annotate.Annotation)> @owned; [[Handle of the Annotation]]
47 eina_iterator_free); [[Handle of the Annotation]]
48 } 47 }
49 annotation_insert { 48 annotation_insert {
50 [[Inserts an annotation format in a specified range [$start, $end - 1]. 49 [[Inserts an annotation format in a specified range [$start, $end - 1].
diff --git a/src/lib/efl/interfaces/efl_ui_menu.eo b/src/lib/efl/interfaces/efl_ui_menu.eo
index 867303e..be4b6cb 100644
--- a/src/lib/efl/interfaces/efl_ui_menu.eo
+++ b/src/lib/efl/interfaces/efl_ui_menu.eo
@@ -29,7 +29,7 @@ interface Efl.Ui.Menu {
29 @property items { 29 @property items {
30 get { 30 get {
31 [[Returns a list of the widget item.]] 31 [[Returns a list of the widget item.]]
32 return: free(own(iterator<Efl.Ui.Item>), eina_iterator_free) @warn_unused; [[Iterator to widget items]] 32 return: iterator<Efl.Ui.Item> @owned @warn_unused; [[Iterator to widget items]]
33 } 33 }
34 } 34 }
35 } 35 }
diff --git a/src/lib/efl/interfaces/efl_vpath.eo b/src/lib/efl/interfaces/efl_vpath.eo
index 7447a2a..ca97f1b 100644
--- a/src/lib/efl/interfaces/efl_vpath.eo
+++ b/src/lib/efl/interfaces/efl_vpath.eo
@@ -25,7 +25,7 @@ interface Efl.Vpath
25 params { 25 params {
26 path: string; [[ The input virtual file path to fetch ]] 26 path: string; [[ The input virtual file path to fetch ]]
27 } 27 }
28 return: own(Efl.Vpath.File); [[ An object representing the file ]] 28 return: Efl.Vpath.File @owned; [[ An object representing the file ]]
29 } 29 }
30 } 30 }
31} 31}
diff --git a/src/lib/efl/interfaces/efl_vpath_manager.eo b/src/lib/efl/interfaces/efl_vpath_manager.eo
index 4157171..e2d3016 100644
--- a/src/lib/efl/interfaces/efl_vpath_manager.eo
+++ b/src/lib/efl/interfaces/efl_vpath_manager.eo
@@ -11,7 +11,7 @@ class Efl.Vpath.Manager (Efl.Object)
11 params { 11 params {
12 path: string; [[ The input virtual file path to fetch ]] 12 path: string; [[ The input virtual file path to fetch ]]
13 } 13 }
14 return: own(Efl.Vpath.File); [[ An object representing the file ]] 14 return: Efl.Vpath.File @owned; [[ An object representing the file ]]
15 } 15 }
16 register @class { 16 register @class {
17 [[Register a vpath with the manager ]] 17 [[Register a vpath with the manager ]]