eolian: rename generic_value to any_value

This commit is contained in:
Daniel Kolesa 2017-09-22 20:16:06 +02:00
parent a6e5caba10
commit 3d8081d085
6 changed files with 11 additions and 11 deletions

View File

@ -40,7 +40,7 @@ interface Efl.Canvas.Layout_Signal
]]
params {
@in id: int; [[A identification number for the message to be sent]]
@in msg: const(generic_value); [[The message's payload]]
@in msg: const(any_value); [[The message's payload]]
}
}
signal_callback_add {

View File

@ -7,7 +7,7 @@ interface Efl.Config ()
[[Set configuration]]
params {
name: string; [[Configuration option name]]
val: ptr(const(generic_value)); [[Configuration option value]]
val: ptr(const(any_value)); [[Configuration option value]]
}
return: bool; [[$false in case of error: value type was invalid, the
config can't be changed, config does not exist...]]
@ -17,14 +17,14 @@ interface Efl.Config ()
params {
name: string; [[Configuration option name]]
}
return: ptr(generic_value) @owned; [[Configuration option value]]
return: ptr(any_value) @owned; [[Configuration option value]]
}
config_list_get @const {
[[Returns a list of generic values under a given key.]]
params {
@in name: string; [[Configuration option name]]
}
return: iterator<ptr(generic_value)> @owned; [[
return: iterator<ptr(any_value)> @owned; [[
List of configuration option values]]
}
}

View File

@ -47,9 +47,9 @@ interface Efl.Model ()
]]
params {
@in property: string; [[Property name]]
@in value: ptr(const(generic_value)); [[New value]]
@in value: ptr(const(any_value)); [[New value]]
}
return: future<generic_value>; [[Future returning the recorded value or error]]
return: future<any_value>; [[Future returning the recorded value or error]]
}
property_get {
[[Retrieve the value of a given property name.
@ -65,7 +65,7 @@ interface Efl.Model ()
params {
@in property: string; [[Property name]]
}
return: future<generic_value>; [[Future of the value that was got]]
return: future<any_value>; [[Future of the value that was got]]
}
children_slice_get {
[[Get children slice OR full range.

View File

@ -93,7 +93,7 @@ class Elm.Prefs (Elm.Widget, Efl.File)
return: bool; [[$true, on success, $false otherwise]]
params {
@in name: string; [[The name of the item (as declared in the prefs collection)]]
@in value: ptr(const(generic_value)); [[The value to set on the item. It should be typed as the item expects, preferably, or a conversion will take place]]
@in value: ptr(const(any_value)); [[The value to set on the item. It should be typed as the item expects, preferably, or a conversion will take place]]
}
}
item_value_get @const {
@ -106,7 +106,7 @@ class Elm.Prefs (Elm.Widget, Efl.File)
params {
@in name: string; [[The name of the item (as declared in the prefs collection) to get value from]]
@out value: generic_value; [[Where to store the value of the item. It will be overwritten and setup with the type the item is bound to]]
@out value: any_value; [[Where to store the value of the item. It will be overwritten and setup with the type the item is bound to]]
}
}
item_object_get {

View File

@ -187,7 +187,7 @@ _validate_type(Eolian_Type *tp)
case KW_stringshare:
tp->freefunc = eina_stringshare_add(eo_strshare_free);
break;
case KW_generic_value:
case KW_any_value:
tp->freefunc = eina_stringshare_add(eo_value_free);
break;
default:

View File

@ -52,7 +52,7 @@ enum Tokens
\
KW(accessor), KW(array), KW(iterator), KW(hash), KW(list), \
KW(future), \
KW(generic_value), \
KW(any_value), \
KW(mstring), KW(string), KW(stringshare), \
\
KW(void_ptr), \