summaryrefslogtreecommitdiffstats
path: root/src/include/eiotas_spin.h
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-22 12:25:46 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-22 12:25:46 +0200
commit7177a697128056e09fee99d7db05ee9bab18f325 (patch)
treedef56e2558d6ba09c40e8ba06b93b4e92176291c /src/include/eiotas_spin.h
parent0cdaa709676809d368cab23cfd10e6b147b4f38c (diff)
downloadedoors-7177a697128056e09fee99d7db05ee9bab18f325.zip
edoors-7177a697128056e09fee99d7db05ee9bab18f325.tar.gz
eiotas_spin.h: add macros eiotas_spin_require_particle and eiotas_spin_release_particle
Diffstat (limited to 'src/include/eiotas_spin.h')
-rw-r--r--src/include/eiotas_spin.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/eiotas_spin.h b/src/include/eiotas_spin.h
index 63cff05..e8d7319 100644
--- a/src/include/eiotas_spin.h
+++ b/src/include/eiotas_spin.h
@@ -20,6 +20,7 @@
#define __EIOTAS_SPIN_H__
#include "eiotas_room.h"
+#include "eiotas_iota.h"
#include "eiotas_particle.h"
#include <eina_array.h>
@@ -43,4 +44,8 @@ EAPI Eiotas_Particle* eiotas_spin_release_particle(Eiotas_Spin *spin, Eiotas_P
EAPI void eiotas_spin_send_particle(Eiotas_Spin *spin, Eiotas_Particle *particle, Eina_Bool system);
+#define eiotas_require_particle(_iota) eiotas_spin_require_particle((Eiotas_Spin*)((Eiotas_Iota*)(_iota))->spin)
+
+#define eiotas_release_particle(_iota,_particle) eiotas_spin_release_particle((Eiotas_Spin*)((Eiotas_Iota*)(_iota))->spin,_particle)
+
#endif // __EIOTAS_SPIN_H__