diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-31 16:37:29 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-31 16:37:29 +0200 |
commit | 31d939efaaa6cda68aec56e859b3c00852fa7ede (patch) | |
tree | 5abfdd82dbb5cbe1ac538240f0f394a8da022d82 /src/lib/eiotas_particle.c | |
parent | 8c561b86372f517b3d6ac9137f09a94f6d2425da (diff) | |
download | edoors-31d939efaaa6cda68aec56e859b3c00852fa7ede.zip edoors-31d939efaaa6cda68aec56e859b3c00852fa7ede.tar.gz |
Particle : add eiotas_particle_data_get
Diffstat (limited to 'src/lib/eiotas_particle.c')
-rw-r--r-- | src/lib/eiotas_particle.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c index a2252bd..5a37ae0 100644 --- a/src/lib/eiotas_particle.c +++ b/src/lib/eiotas_particle.c @@ -29,7 +29,7 @@ Eiotas_Particle* eiotas_particle_alloc() particle->src = NULL; particle->dst = NULL; particle->dsts = eina_array_new(EIOTAS_PARTICLE_ARRAY_STEP); - particle->payload = eina_hash_string_small_new(NULL); // TODO data delete function + particle->payload = eina_hash_string_small_new((Eina_Free_Cb)&eina_stringshare_del); particle->merged = NULL; particle->link_fields = eina_array_new(EIOTAS_PARTICLE_ARRAY_STEP); particle->link_value = NULL; @@ -147,6 +147,11 @@ EAPI void eiotas_particle_link_fields_set(Eiotas_Particle *particle, const char update_link_value(particle,NULL); } +EAPI const char* eiotas_particle_data_get(Eiotas_Particle *particle, const char* key) +{ + return eina_hash_find(particle->payload,key); +} + static void update_link_value(Eiotas_Particle *particle, const char *field) { unsigned int i; |