Eo: set object as const for key_data_get

Due to Eo4 changes, const is now important for this function.
This commit is contained in:
Daniel Zaoui 2016-03-04 13:48:56 +02:00
parent 0dca76798e
commit 66256028d5
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ abstract Eo.Base ()
@in data: const(void)*; [[the data to set]] @in data: const(void)*; [[the data to set]]
} }
} }
key_data_get { key_data_get @const {
[[Get generic data from object.]] [[Get generic data from object.]]
params { params {
@in key: const(char)*; [[the key associated with the data]] @in key: const(char)*; [[the key associated with the data]]

View File

@ -77,7 +77,7 @@ _eo_base_key_data_set(Eo *obj, Eo_Base_Data *pd,
} }
EOLIAN static void * EOLIAN static void *
_eo_base_key_data_get(Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key) _eo_base_key_data_get(const Eo *obj EINA_UNUSED, Eo_Base_Data *pd, const char *key)
{ {
/* We don't really change it... */ /* We don't really change it... */
Eo_Generic_Data_Node *node; Eo_Generic_Data_Node *node;