From 9367c00e3a8c496eb169afda5143744ed86201b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2012 16:01:32 +0200 Subject: implement eiotas_spin_send_particle --- src/lib/eiotas_spin.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); + } +} + -- cgit v1.1-2-g2b99