GDAL
port
cpl_list.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* Name: cpl_list.h
4
* Project: CPL - Common Portability Library
5
* Purpose: List functions.
6
* Author: Andrey Kiselev, dron@remotesensing.org
7
*
8
**********************************************************************
9
* Copyright (c) 2003, Andrey Kiselev <dron@remotesensing.org>
10
*
11
* SPDX-License-Identifier: MIT
12
****************************************************************************/
13
14
#ifndef CPL_LIST_H_INCLUDED
15
#define CPL_LIST_H_INCLUDED
16
17
#include "
cpl_port.h
"
18
27
28
CPL_C_START
29
31
typedef
struct
_CPLList
CPLList
;
32
34
struct
_CPLList
35
{
39
void
*
pData
;
43
struct
_CPLList
*
psNext
;
44
};
45
46
CPLList
CPL_DLL *CPLListAppend(
CPLList
*psList,
void
*
pData
);
47
CPLList
CPL_DLL *CPLListInsert(
CPLList
*psList,
void
*
pData
,
int
nPosition);
48
CPLList
CPL_DLL *CPLListGetLast(
CPLList
*psList);
49
CPLList
CPL_DLL *CPLListGet(
CPLList
*
const
psList,
int
nPosition);
50
int
CPL_DLL CPLListCount(
const
CPLList
*psList);
51
CPLList
CPL_DLL *CPLListRemove(
CPLList
*psList,
int
nPosition);
52
void
CPL_DLL CPLListDestroy(
CPLList
*psList);
53
CPLList
CPL_DLL *CPLListGetNext(
const
CPLList
*psElement);
54
void
CPL_DLL *CPLListGetData(
const
CPLList
*psElement);
55
56
CPL_C_END
57
58
#endif
/* CPL_LIST_H_INCLUDED */
CPLList
struct _CPLList CPLList
List element structure.
Definition
cpl_list.h:31
cpl_port.h
Core portability definitions for CPL.
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition
cpl_port.h:279
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition
cpl_port.h:275
_CPLList
List element structure.
Definition
cpl_list.h:35
_CPLList::pData
void * pData
Definition
cpl_list.h:39
_CPLList::psNext
struct _CPLList * psNext
Definition
cpl_list.h:43
Generated by
1.18.0