From e35105c0be65f834b0623392b6f8af47e3238799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2012 10:59:26 +0200 Subject: provide minimal implementation of eiotas_particle_alloc and eiotas_particle_free --- src/lib/eiotas_particle.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c index 28ff6c0..d18163c 100644 --- a/src/lib/eiotas_particle.c +++ b/src/lib/eiotas_particle.c @@ -23,9 +23,17 @@ #include "eiotas_particle.h" #include "eiotas_private.h" +Eiotas_Particle* eiotas_particle_alloc() +{ + Eiotas_Particle *particle = (Eiotas_Particle*)malloc(sizeof(Eiotas_Particle)); + + return particle; +} + void eiotas_particle_free(Eiotas_Particle *particle) { DBG("Particle free 0x%X",particle); - // TODO + + free(particle); } -- cgit v1.1-2-g2b99