eo: rationalize naming to follow other use of ref and wref in our API.

This commit is contained in:
Cedric BAIL 2016-07-13 16:05:58 -07:00
parent 649f120326
commit d85c07e4a7
2 changed files with 6 additions and 6 deletions

View File

@ -228,7 +228,7 @@ abstract Eo.Base ()
}
}
}
@property key_obj {
@property key_ref {
[[Generic object reference with string key to object.
The object will be automatically ref'd when set and unref'd
@ -253,7 +253,7 @@ abstract Eo.Base ()
}
}
}
@property key_obj_weak {
@property key_wref {
[[Generic weak object reference with string key to object.
The object key will be removed if the object is removed, but

View File

@ -255,7 +255,7 @@ _eo_base_key_data_get(Eo *obj, Eo_Base_Data *pd, const char *key)
}
EOLIAN static void
_eo_base_key_obj_set(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key, const Eo *objdata)
_eo_base_key_ref_set(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key, const Eo *objdata)
{
Eo_Generic_Data_Node *node;
@ -268,13 +268,13 @@ _eo_base_key_obj_set(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key, con
}
EOLIAN static Eo *
_eo_base_key_obj_get(Eo *obj, Eo_Base_Data *pd, const char *key)
_eo_base_key_ref_get(Eo *obj, Eo_Base_Data *pd, const char *key)
{
return _key_generic_get(obj, pd, key, DATA_OBJ);
}
EOLIAN static void
_eo_base_key_obj_weak_set(Eo *obj, Eo_Base_Data *pd, const char * key, const Eo_Base *objdata)
_eo_base_key_wref_set(Eo *obj, Eo_Base_Data *pd, const char * key, const Eo_Base *objdata)
{
Eo_Generic_Data_Node *node;
@ -286,7 +286,7 @@ _eo_base_key_obj_weak_set(Eo *obj, Eo_Base_Data *pd, const char * key, const Eo_
}
EOLIAN static Eo *
_eo_base_key_obj_weak_get(Eo *obj, Eo_Base_Data *pd, const char * key)
_eo_base_key_wref_get(Eo *obj, Eo_Base_Data *pd, const char * key)
{
return _key_generic_get(obj, pd, key, DATA_OBJ_WEAK);
}