summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2019-09-20 18:02:07 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2019-09-20 18:03:39 +0200
commit53a3326ddc74634093d9bd06e3d5c23fcd783b54 (patch)
tree64bc00b31e15d6a467e2273d94c510774816cc9c /src/lib
parent7cbd08ee8c577d35699d937b56c95a65ffcbcd67 (diff)
eolian: rename any_value_ptr -> any_value_ref for consistency
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/efl_loop.eo2
-rw-r--r--src/lib/efl/interfaces/efl_config.eo4
-rw-r--r--src/lib/efl/interfaces/efl_model.eo6
-rw-r--r--src/lib/elementary/efl_ui_view_model.eo6
-rw-r--r--src/lib/elementary/efl_ui_win.eo4
-rw-r--r--src/lib/eolian/Eolian.h2
-rw-r--r--src/lib/eolian/database_validate.c6
-rw-r--r--src/lib/eolian/eo_lexer.h2
-rw-r--r--src/lib/eolian_cxx/grammar/type_impl.hpp6
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_manager.eo2
-rw-r--r--src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo2
11 files changed, 21 insertions, 21 deletions
diff --git a/src/lib/ecore/efl_loop.eo b/src/lib/ecore/efl_loop.eo
index ea263fb738..0f17c311da 100644
--- a/src/lib/ecore/efl_loop.eo
+++ b/src/lib/ecore/efl_loop.eo
@@ -37,7 +37,7 @@ abstract Efl.Loop extends Efl.Task
37 } 37 }
38 begin { 38 begin {
39 [[Runs the application main loop.]] 39 [[Runs the application main loop.]]
40 return: any_value_ptr; [[Value set by quit()]] 40 return: any_value_ref; [[Value set by quit()]]
41 } 41 }
42 quit { 42 quit {
43 [[Quits the main loop once all the events currently on the queue have 43 [[Quits the main loop once all the events currently on the queue have
diff --git a/src/lib/efl/interfaces/efl_config.eo b/src/lib/efl/interfaces/efl_config.eo
index 0e482577b0..afbe38ec89 100644
--- a/src/lib/efl/interfaces/efl_config.eo
+++ b/src/lib/efl/interfaces/efl_config.eo
@@ -9,7 +9,7 @@ interface @beta Efl.Config
9 name: string; [[Configuration option name.]] 9 name: string; [[Configuration option name.]]
10 } 10 }
11 values { 11 values {
12 value: any_value_ptr @move; 12 value: any_value_ref @move;
13 [[The value. It will be empty if it doesn't exist. The caller 13 [[The value. It will be empty if it doesn't exist. The caller
14 must free it after use (using $eina_value_free() in C).]] 14 must free it after use (using $eina_value_free() in C).]]
15 } 15 }
@@ -19,7 +19,7 @@ interface @beta Efl.Config
19 name: string; [[Configuration option name.]] 19 name: string; [[Configuration option name.]]
20 } 20 }
21 values { 21 values {
22 value: const(any_value_ptr); 22 value: const(any_value_ref);
23 [[Configuration option value. May be $null if not found.]] 23 [[Configuration option value. May be $null if not found.]]
24 } 24 }
25 return: bool; [[$false in case of error: value type was invalid, the 25 return: bool; [[$false in case of error: value type was invalid, the
diff --git a/src/lib/efl/interfaces/efl_model.eo b/src/lib/efl/interfaces/efl_model.eo
index 9390b87b22..5713df6dc4 100644
--- a/src/lib/efl/interfaces/efl_model.eo
+++ b/src/lib/efl/interfaces/efl_model.eo
@@ -59,7 +59,7 @@ interface @beta Efl.Model
59 59
60 See @.property.get, @[Efl.Model.properties,changed] 60 See @.property.get, @[Efl.Model.properties,changed]
61 ]] 61 ]]
62 return: future<any_value_ptr>; [[Return an error in case the property could not be set, 62 return: future<any_value_ref>; [[Return an error in case the property could not be set,
63 or the value that was set otherwise.]] 63 or the value that was set otherwise.]]
64 } 64 }
65 get { 65 get {
@@ -76,7 +76,7 @@ interface @beta Efl.Model
76 property: string; [[Property name]] 76 property: string; [[Property name]]
77 } 77 }
78 values { 78 values {
79 value: any_value_ptr; [[Property value]] 79 value: any_value_ref; [[Property value]]
80 } 80 }
81 } 81 }
82 property_ready_get { 82 property_ready_get {
@@ -94,7 +94,7 @@ interface @beta Efl.Model
94 params { 94 params {
95 @in property: string; [[Property name.]] 95 @in property: string; [[Property name.]]
96 } 96 }
97 return: future<any_value_ptr>; [[Future to be resolved when the property changes to anything other than 97 return: future<any_value_ref>; [[Future to be resolved when the property changes to anything other than
98 error:EAGAIN]] 98 error:EAGAIN]]
99 } 99 }
100 children_slice_get { 100 children_slice_get {
diff --git a/src/lib/elementary/efl_ui_view_model.eo b/src/lib/elementary/efl_ui_view_model.eo
index c09ae516e6..a5caaa8d1c 100644
--- a/src/lib/elementary/efl_ui_view_model.eo
+++ b/src/lib/elementary/efl_ui_view_model.eo
@@ -4,7 +4,7 @@ function @beta EflUiViewModelPropertyGet {
4 @in view_model: const(Efl.Ui.View_Model); [[The ViewModel object the @.property.get is issued on.]] 4 @in view_model: const(Efl.Ui.View_Model); [[The ViewModel object the @.property.get is issued on.]]
5 @in property: stringshare; [[The property name the @.property.get is issued on.]] 5 @in property: stringshare; [[The property name the @.property.get is issued on.]]
6 } 6 }
7 return: any_value_ptr; [[The property value.]] 7 return: any_value_ref; [[The property value.]]
8}; 8};
9 9
10function @beta EflUiViewModelPropertySet { 10function @beta EflUiViewModelPropertySet {
@@ -12,9 +12,9 @@ function @beta EflUiViewModelPropertySet {
12 params { 12 params {
13 @in view_model: Efl.Ui.View_Model; [[The ViewModel object the @.property.set is issued on.]] 13 @in view_model: Efl.Ui.View_Model; [[The ViewModel object the @.property.set is issued on.]]
14 @in property: stringshare; [[The property name the @.property.set is issued on.]] 14 @in property: stringshare; [[The property name the @.property.set is issued on.]]
15 @in value: any_value_ptr @move; [[The new value to set.]] 15 @in value: any_value_ref @move; [[The new value to set.]]
16 } 16 }
17 return: future<any_value_ptr>; [[The value that was finally set.]] 17 return: future<any_value_ref>; [[The value that was finally set.]]
18}; 18};
19 19
20class @beta Efl.Ui.View_Model extends Efl.Composite_Model 20class @beta Efl.Ui.View_Model extends Efl.Composite_Model
diff --git a/src/lib/elementary/efl_ui_win.eo b/src/lib/elementary/efl_ui_win.eo
index 745e7a318b..30ae151ac6 100644
--- a/src/lib/elementary/efl_ui_win.eo
+++ b/src/lib/elementary/efl_ui_win.eo
@@ -280,7 +280,7 @@ class Efl.Ui.Win extends Efl.Ui.Widget implements Efl.Canvas.Scene, Efl.Access.W
280 windows are closed. 280 windows are closed.
281 ]] 281 ]]
282 values { 282 values {
283 exit_code: const(any_value_ptr); [[The exit code to use when exiting]] 283 exit_code: const(any_value_ref); [[The exit code to use when exiting]]
284 } 284 }
285 } 285 }
286 @property icon_object { 286 @property icon_object {
@@ -596,7 +596,7 @@ class Efl.Ui.Win extends Efl.Ui.Widget implements Efl.Canvas.Scene, Efl.Access.W
596 Note this is different from @.exit_on_close which exits when a given window is closed. 596 Note this is different from @.exit_on_close which exits when a given window is closed.
597 ]] 597 ]]
598 values { 598 values {
599 exit_code: const(any_value_ptr); [[The exit code to use when exiting.]] 599 exit_code: const(any_value_ref); [[The exit code to use when exiting.]]
600 } 600 }
601 } 601 }
602 activate { 602 activate {
diff --git a/src/lib/eolian/Eolian.h b/src/lib/eolian/Eolian.h
index 0cb7384772..ed6444ce73 100644
--- a/src/lib/eolian/Eolian.h
+++ b/src/lib/eolian/Eolian.h
@@ -340,7 +340,7 @@ typedef enum
340 EOLIAN_TYPE_BUILTIN_LIST, 340 EOLIAN_TYPE_BUILTIN_LIST,
341 341
342 EOLIAN_TYPE_BUILTIN_ANY_VALUE, 342 EOLIAN_TYPE_BUILTIN_ANY_VALUE,
343 EOLIAN_TYPE_BUILTIN_ANY_VALUE_PTR, 343 EOLIAN_TYPE_BUILTIN_ANY_VALUE_REF,
344 EOLIAN_TYPE_BUILTIN_BINBUF, 344 EOLIAN_TYPE_BUILTIN_BINBUF,
345 EOLIAN_TYPE_BUILTIN_EVENT, 345 EOLIAN_TYPE_BUILTIN_EVENT,
346 EOLIAN_TYPE_BUILTIN_MSTRING, 346 EOLIAN_TYPE_BUILTIN_MSTRING,
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 5706ace308..a24105c607 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -326,7 +326,7 @@ _validate_type(Validate_State *vals, Eolian_Type *tp)
326 case KW_mstring: 326 case KW_mstring:
327 case KW_stringshare: 327 case KW_stringshare:
328 case KW_any_value: 328 case KW_any_value:
329 case KW_any_value_ptr: 329 case KW_any_value_ref:
330 case KW_binbuf: 330 case KW_binbuf:
331 case KW_strbuf: 331 case KW_strbuf:
332 tp->ownable = EINA_TRUE; 332 tp->ownable = EINA_TRUE;
@@ -645,12 +645,12 @@ _validate_event(Validate_State *vals, Eolian_Event *event, Eina_Hash *nhash)
645 return _reset_stable(vals, was_stable, EINA_FALSE); 645 return _reset_stable(vals, was_stable, EINA_FALSE);
646 } 646 }
647 /* any type past builtin value types and containers is not allowed, 647 /* any type past builtin value types and containers is not allowed,
648 * any_value is allowed but passed as const reference, any_value_ptr 648 * any_value is allowed but passed as const reference, any_value_ref
649 * is not; string is allowed, but mutable strings or stringshares are 649 * is not; string is allowed, but mutable strings or stringshares are
650 * not and neither are string buffers, the type is never owned by the 650 * not and neither are string buffers, the type is never owned by the
651 * callee, so all strings passed in are unowned and read-only 651 * callee, so all strings passed in are unowned and read-only
652 */ 652 */
653 if (kwid >= KW_any_value_ptr && kwid != KW_string) 653 if (kwid >= KW_any_value_ref && kwid != KW_string)
654 { 654 {
655 _eo_parser_log(&tp->base, "forbidden event type"); 655 _eo_parser_log(&tp->base, "forbidden event type");
656 return _reset_stable(vals, was_stable, EINA_FALSE); 656 return _reset_stable(vals, was_stable, EINA_FALSE);
diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h
index e6ab8da0bd..3b2bf734ac 100644
--- a/src/lib/eolian/eo_lexer.h
+++ b/src/lib/eolian/eo_lexer.h
@@ -60,7 +60,7 @@ enum Tokens
60 KW(void), \ 60 KW(void), \
61 \ 61 \
62 KW(accessor), KW(array), KW(future), KW(iterator), KW(hash), KW(list), \ 62 KW(accessor), KW(array), KW(future), KW(iterator), KW(hash), KW(list), \
63 KW(any_value), KW(any_value_ptr), KW(binbuf), KW(event), \ 63 KW(any_value), KW(any_value_ref), KW(binbuf), KW(event), \
64 KW(mstring), KW(string), KW(stringshare), KW(strbuf), \ 64 KW(mstring), KW(string), KW(stringshare), KW(strbuf), \
65 \ 65 \
66 KW(void_ptr), \ 66 KW(void_ptr), \
diff --git a/src/lib/eolian_cxx/grammar/type_impl.hpp b/src/lib/eolian_cxx/grammar/type_impl.hpp
index b8cb7342b6..959f654c1b 100644
--- a/src/lib/eolian_cxx/grammar/type_impl.hpp
+++ b/src/lib/eolian_cxx/grammar/type_impl.hpp
@@ -164,7 +164,7 @@ struct visitor_generate
164 else 164 else
165 return replace_base_type(r, " Eina_Binbuf const*"); 165 return replace_base_type(r, " Eina_Binbuf const*");
166 }} 166 }}
167 /* FIXME: handle any_value_ptr */ 167 /* FIXME: handle any_value_ref */
168 , {"any_value", true, nullptr, nullptr, [&] 168 , {"any_value", true, nullptr, nullptr, [&]
169 { 169 {
170 return regular_type_def{" ::efl::eina::value", regular.base_qualifier ^ qualifier_info::is_ref, {}}; 170 return regular_type_def{" ::efl::eina::value", regular.base_qualifier ^ qualifier_info::is_ref, {}};
@@ -172,11 +172,11 @@ struct visitor_generate
172 , {"any_value", false, nullptr, nullptr, [&] 172 , {"any_value", false, nullptr, nullptr, [&]
173 { return regular_type_def{" ::efl::eina::value_view", regular.base_qualifier, {}}; 173 { return regular_type_def{" ::efl::eina::value_view", regular.base_qualifier, {}};
174 }} 174 }}
175 , {"any_value_ptr", true, nullptr, nullptr, [&] 175 , {"any_value_ref", true, nullptr, nullptr, [&]
176 { 176 {
177 return regular_type_def{" ::efl::eina::value", regular.base_qualifier ^ qualifier_info::is_ref, {}}; 177 return regular_type_def{" ::efl::eina::value", regular.base_qualifier ^ qualifier_info::is_ref, {}};
178 }} 178 }}
179 , {"any_value_ptr", false, nullptr, nullptr, [&] 179 , {"any_value_ref", false, nullptr, nullptr, [&]
180 { return regular_type_def{" ::efl::eina::value_view", regular.base_qualifier ^ qualifier_info::is_ref, {}}; 180 { return regular_type_def{" ::efl::eina::value_view", regular.base_qualifier ^ qualifier_info::is_ref, {}};
181 }} 181 }}
182 }; 182 };
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_manager.eo b/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
index 8e5d75dead..762fccab57 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
+++ b/src/lib/evas/gesture/efl_canvas_gesture_manager.eo
@@ -37,7 +37,7 @@ class @beta Efl.Canvas.Gesture_Manager extends Efl.Object
37 name: string; [[Property name.]] 37 name: string; [[Property name.]]
38 } 38 }
39 values { 39 values {
40 value: any_value_ptr; [[Value of the property.]] 40 value: any_value_ref; [[Value of the property.]]
41 } 41 }
42 } 42 }
43 } 43 }
diff --git a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
index c12274b899..e24fc7e9df 100644
--- a/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
+++ b/src/lib/evas/gesture/efl_canvas_gesture_recognizer.eo
@@ -48,7 +48,7 @@ abstract @beta Efl.Canvas.Gesture_Recognizer extends Efl.Object
48 name: string; [[Property name.]] 48 name: string; [[Property name.]]
49 } 49 }
50 values { 50 values {
51 value: any_value_ptr; [[Value of the property.]] 51 value: any_value_ref; [[Value of the property.]]
52 } 52 }
53 } 53 }
54 } 54 }