00001 /* 00002 Lidy - A small C library for sparse matrices managing 00003 Copyright (C) 2006 - Nicolas LERME 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 3 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef __LINKED_LIST_H__ 00021 #define __LINKED_LIST_H__ 00022 00023 #include "types.h" 00024 #include "node.h" 00025 #include "cell.h" 00026 00027 #ifdef __cplusplus 00028 extern "C"{ 00029 #endif 00030 00040 struct SLinkedList 00041 { 00042 unsigned int m_NbNodes; 00043 pSNode m_pHead; 00044 }; 00045 00046 typedef struct SLinkedList * pSLinkedList; 00047 00048 00054 pSLinkedList Lidy_CreateLinkedList(); 00055 00056 00064 Bool Lidy_InsertNodeToTail( pSLinkedList LinkedList, pSCell Cell ); 00065 00066 00075 Bool Lidy_InsertNodeInPosition( pSLinkedList LinkedList, unsigned int Position, pSCell Cell ); 00076 00077 00084 void Lidy_ClearLinkedList( pSLinkedList LinkedList ); 00085 00086 00093 void Lidy_DeleteLinkedList( pSLinkedList LinkedList ); 00094 00095 #ifdef __cplusplus 00096 } //extern "C" 00097 #endif 00098 00099 #endif //__LINKED_LIST_H__
1.5.8