diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-25 16:50:25 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-25 16:50:25 +0200 |
commit | 51880aee4ed5ec9c40660bfb4640eb5fe695a62a (patch) | |
tree | 455fce4a0d4cad9a0edc3de51fa3d4be4472aa24 /src/include/eiotas_particle.h | |
parent | 09a78560596ad9eeaf7f1737b716e9f724e2cd64 (diff) | |
download | edoors-51880aee4ed5ec9c40660bfb4640eb5fe695a62a.zip edoors-51880aee4ed5ec9c40660bfb4640eb5fe695a62a.tar.gz |
Particle: feed the struct
Diffstat (limited to 'src/include/eiotas_particle.h')
-rw-r--r-- | src/include/eiotas_particle.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/eiotas_particle.h b/src/include/eiotas_particle.h index e376e8f..1b309a0 100644 --- a/src/include/eiotas_particle.h +++ b/src/include/eiotas_particle.h @@ -19,14 +19,26 @@ #ifndef __EIOTAS_PARTICLE_H__ #define __EIOTAS_PARTICLE_H__ -#include <eina_types.h> +#include <time.h> +#include <eina_hash.h> +#include <eina_array.h> #include <eina_inlist.h> #include <eina_stringshare.h> +#include "eiotas_iota.h" + typedef struct _Eiotas_Particle Eiotas_Particle; struct _Eiotas_Particle { EINA_INLIST; + time_t ts; /* creation time */ + Eiotas_Iota *src; /* where it's born */ + Eiotas_Iota *dst; /* current destination */ + Eina_Array *dsts; /* array of destinatinon strings */ + Eina_Hash *payload; /* string data carried by this particle */ + Eina_Inlist *merged; /* list of merged particles */ + Eina_Array *link_fields; /* fields used to generate the link value */ + Eina_Stringshare *link_value; /* computed from link_fields and paylod, used for pearing particles */ }; void eiotas_particle_free(Eiotas_Particle *particle); |