summaryrefslogtreecommitdiffstats
path: root/src/include/eiotas_spin.h
diff options
context:
space:
mode:
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__