cpl_list.h

Go to the documentation of this file.
00001 /**********************************************************************
00002  * $Id: cpl_list.h,v 1.2 2003/06/27 16:14:05 warmerda Exp $
00003  *
00004  * Name:     cpl_list.h
00005  * Project:  CPL - Common Portability Library
00006  * Purpose:  List functions.
00007  * Author:   Andrey Kiselev, dron@remotesensing.org
00008  *
00009  **********************************************************************
00010  * Copyright (c) 2003, Andrey Kiselev <dron@remotesensing.org>
00011  *
00012  * Permission is hereby granted, free of charge, to any person obtaining a
00013  * copy of this software and associated documentation files (the "Software"),
00014  * to deal in the Software without restriction, including without limitation
00015  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00016  * and/or sell copies of the Software, and to permit persons to whom the
00017  * Software is furnished to do so, subject to the following conditions:
00018  * 
00019  * The above copyright notice and this permission notice shall be included
00020  * in all copies or substantial portions of the Software.
00021  * 
00022  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00023  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00024  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00025  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00026  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00027  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
00028  * DEALINGS IN THE SOFTWARE.
00029  **********************************************************************
00030  *
00031  * $Log: cpl_list.h,v $
00032  * Revision 1.2  2003/06/27 16:14:05  warmerda
00033  * regularized CPLList declaration
00034  *
00035  * Revision 1.1  2003/06/25 07:45:57  dron
00036  * New.
00037  *
00038  *
00039  **********************************************************************/
00040 
00041 #ifndef _CPL_LIST_H_INCLUDED
00042 #define _CPL_LIST_H_INCLUDED
00043 
00044 #include "cpl_port.h"
00045 
00055 CPL_C_START
00056 
00058 typedef struct _CPLList
00059 {
00063     void        *pData;
00067     struct _CPLList    *psNext;
00068 } CPLList;
00069 
00070 CPLList CPL_DLL *CPLListAppend( CPLList *psList, void *pData );
00071 CPLList CPL_DLL *CPLListInsert( CPLList *psList, void *pData, int nPosition );
00072 CPLList CPL_DLL *CPLListGetLast( CPLList *psList );
00073 CPLList CPL_DLL *CPLListGet( CPLList *psList, int nPosition );
00074 int CPL_DLL CPLListCount( CPLList *psList );
00075 CPLList CPL_DLL *CPLListRemove( CPLList *psList, int nPosition );
00076 void CPL_DLL CPLListDestroy( CPLList *psList );
00077 CPLList CPL_DLL *CPLListGetNext( CPLList *psElement );
00078 void CPL_DLL *CPLListGetData( CPLList *psElement );
00079 
00080 CPL_C_END
00081 
00082 #endif /* _CPL_LIST_H_INCLUDED */
00083 

Generated on Mon Jan 9 18:03:35 2006 for GDAL by  doxygen 1.4.6