summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-22 16:01:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-22 16:01:32 +0200
commit9367c00e3a8c496eb169afda5143744ed86201b0 (patch)
tree7528d53628fc86c24c7f140f23c2a9a6c6b021af /src/lib
parentea9457699ba1eb2b01521bd2aecb15fa3488a633 (diff)
downloadedoors-9367c00e3a8c496eb169afda5143744ed86201b0.zip
edoors-9367c00e3a8c496eb169afda5143744ed86201b0.tar.gz
implement eiotas_spin_send_particle
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/eiotas_spin.c9
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);
+ }
+}
+