diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 16:01:32 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 16:01:32 +0200 |
commit | 9367c00e3a8c496eb169afda5143744ed86201b0 (patch) | |
tree | 7528d53628fc86c24c7f140f23c2a9a6c6b021af | |
parent | ea9457699ba1eb2b01521bd2aecb15fa3488a633 (diff) | |
download | edoors-9367c00e3a8c496eb169afda5143744ed86201b0.zip edoors-9367c00e3a8c496eb169afda5143744ed86201b0.tar.gz |
implement eiotas_spin_send_particle
-rw-r--r-- | src/lib/eiotas_spin.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/eiotas_spin.c b/src/lib/eiotas_spin.c index 5d74378..783de18 100644 --- a/src/lib/eiotas_spin.c +++ b/src/lib/eiotas_spin.c @@ -73,3 +73,12 @@ EAPI void eiotas_spin_release_particle(Eiotas_Spin *spin, Eiotas_Particle *parti eina_array_push(spin->free_particles,particle); } +EAPI void eiotas_spin_send_particle(Eiotas_Spin *spin, Eiotas_Particle *particle, Eina_Bool system) +{ + if(system) { + eina_array_push(spin->sys_fifo,particle); + } else { + eina_array_push(spin->app_fifo,particle); + } +} + |