From 2ef4c6d3ff6754a9889b414fca8bddfa4ad8023e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 21 May 2012 22:55:23 +0200 Subject: add eiotas_particle.c and eiotas_link.c --- src/include/eiotas_iota.h | 2 +- src/lib/CMakeLists.txt | 2 ++ src/lib/eiotas_link.c | 31 +++++++++++++++++++++++++++++++ src/lib/eiotas_particle.c | 31 +++++++++++++++++++++++++++++++ 4 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 src/lib/eiotas_link.c create mode 100644 src/lib/eiotas_particle.c diff --git a/src/include/eiotas_iota.h b/src/include/eiotas_iota.h index 4a01921..6e4a346 100644 --- a/src/include/eiotas_iota.h +++ b/src/include/eiotas_iota.h @@ -25,8 +25,8 @@ typedef enum _Eiotas_Type { EIOTAS_TYPE_SPIN=0, EIOTAS_TYPE_ROOM, - EIOTAS_TYPE_BOARD, EIOTAS_TYPE_DOOR, + EIOTAS_TYPE_BOARD, EIOTAS_TYPE_COUNT } Eiotas_Type; diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index cf5d693..e2871fc 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -1,5 +1,7 @@ LIST(APPEND EIOTAS_CC_SOURCES eiotas_main.c + eiotas_particle.c + eiotas_link.c eiotas_iota.c eiotas_spin.c eiotas_room.c diff --git a/src/lib/eiotas_link.c b/src/lib/eiotas_link.c new file mode 100644 index 0000000..59d4326 --- /dev/null +++ b/src/lib/eiotas_link.c @@ -0,0 +1,31 @@ +/* EIOTAS + * Copyright (C) 2012 Jérémy Zurcher + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; + * if not, see . + */ + +#ifdef HAVE_CONFIG_H +# include "eina_config.h" +#endif + +#include "eiotas_link.h" +#include "eiotas_private.h" + +void eiotas_link_free(Eiotas_Link *link) +{ + DBG("Link free 0x%X",link); + // TODO +} + diff --git a/src/lib/eiotas_particle.c b/src/lib/eiotas_particle.c new file mode 100644 index 0000000..28ff6c0 --- /dev/null +++ b/src/lib/eiotas_particle.c @@ -0,0 +1,31 @@ +/* EIOTAS + * Copyright (C) 2012 Jérémy Zurcher + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; + * if not, see . + */ + +#ifdef HAVE_CONFIG_H +# include "eina_config.h" +#endif + +#include "eiotas_particle.h" +#include "eiotas_private.h" + +void eiotas_particle_free(Eiotas_Particle *particle) +{ + DBG("Particle free 0x%X",particle); + // TODO +} + -- cgit v1.1-2-g2b99