1 /*************************************************************************** 2 begin : Fri Jan 02 2009 3 copyright : (C) 2009 by Martin Preuss 4 email : martin@libchipcard.de 5 6 *************************************************************************** 7 * * 8 * This library is free software; you can redistribute it and/or * 9 * modify it under the terms of the GNU Lesser General Public * 10 * License as published by the Free Software Foundation; either * 11 * version 2.1 of the License, or (at your option) any later version. * 12 * * 13 * This library is distributed in the hope that it will be useful, * 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 16 * Lesser General Public License for more details. * 17 * * 18 * You should have received a copy of the GNU Lesser General Public * 19 * License along with this library; if not, write to the Free Software * 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 21 * MA 02111-1307 USA * 22 * * 23 ***************************************************************************/ 24 25 26 #ifndef GWEN_TREE_P_H 27 #define GWEN_TREE_P_H 28 29 30 #include "tree.h" 31 32 33 34 struct GWEN_TREE_ELEMENT { 35 GWEN_TREE *treePtr; 36 void *data; 37 GWEN_TREE_ELEMENT *prevElement; 38 GWEN_TREE_ELEMENT *nextElement; 39 40 GWEN_TREE_ELEMENT *firstChild; 41 GWEN_TREE_ELEMENT *lastChild; 42 43 GWEN_TREE_ELEMENT *parent; 44 45 uint32_t count; 46 }; 47 48 49 struct GWEN_TREE { 50 uint32_t count; 51 GWEN_TREE_ELEMENT *firstElement; 52 GWEN_TREE_ELEMENT *lastElement; 53 }; 54 55 56 57 #endif 58 59 60