gwenhywfar
4.7.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
base
pointerlist.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Wed Sep 12 2012
3
copyright : (C) 2012 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
30
#ifndef GWENHYWFAR_POINTERLIST_H
31
#define GWENHYWFAR_POINTERLIST_H
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
typedef
struct
GWEN_POINTERLIST
GWEN_POINTERLIST
;
37
typedef
struct
GWEN_POINTERLIST_ITERATOR
GWEN_POINTERLIST_ITERATOR
;
38
#ifdef __cplusplus
39
}
40
#endif
41
42
#include <gwenhywfar/gwenhywfarapi.h>
43
#include <gwenhywfar/types.h>
44
45
#ifdef __cplusplus
46
extern
"C"
{
47
#endif
48
62
GWENHYWFAR_API
63
GWEN_POINTERLIST
*
GWEN_PointerList_new
(
void
);
64
68
GWENHYWFAR_API
69
void
GWEN_PointerList_free
(
GWEN_POINTERLIST
*idl);
70
71
72
73
GWENHYWFAR_API
74
void
GWEN_PointerList_Attach
(
GWEN_POINTERLIST
*idl);
75
76
83
GWENHYWFAR_API
84
GWEN_POINTERLIST
*
GWEN_PointerList_dup
(
const
GWEN_POINTERLIST
*idl);
85
86
90
GWENHYWFAR_API
91
void
GWEN_PointerList_Clear
(
GWEN_POINTERLIST
*idl);
92
96
GWENHYWFAR_API
97
int
GWEN_PointerList_AddPtr
(
GWEN_POINTERLIST
*idl,
void
*ptr);
98
103
GWENHYWFAR_API
104
int
GWEN_PointerList_DelPtr
(
GWEN_POINTERLIST
*idl,
void
*ptr);
105
110
GWENHYWFAR_API
111
int
GWEN_PointerList_HasPtr
(
const
GWEN_POINTERLIST
*idl,
void
*ptr);
112
115
GWENHYWFAR_API
116
void
*
GWEN_PointerList_GetFirstPtr
(
const
GWEN_POINTERLIST
*idl, uint64_t *hdl);
117
120
GWENHYWFAR_API
121
void
*
GWEN_PointerList_GetNextPtr
(
const
GWEN_POINTERLIST
*idl, uint64_t *hdl);
122
123
127
GWENHYWFAR_API
128
int
GWEN_PointerList_AppendPtr
(
GWEN_POINTERLIST
*idl,
void
*ptr);
129
130
GWENHYWFAR_API
131
void
*
GWEN_PointerList_GetPtrAt
(
const
GWEN_POINTERLIST
*idl, uint64_t index);
132
133
134
GWENHYWFAR_API
135
uint64_t
GWEN_PointerList_GetEntryCount
(
const
GWEN_POINTERLIST
*idl);
136
149
150
GWENHYWFAR_API
151
GWEN_POINTERLIST_ITERATOR
*
GWEN_PointerList_Iterator_new
(
GWEN_POINTERLIST
*idl);
152
153
GWENHYWFAR_API
154
void
GWEN_PointerList_Iterator_free
(
GWEN_POINTERLIST_ITERATOR
*it);
155
156
GWENHYWFAR_API
157
void
*
GWEN_PointerList_Iterator_GetFirstId
(
GWEN_POINTERLIST_ITERATOR
*it);
158
159
GWENHYWFAR_API
160
void
*
GWEN_PointerList_Iterator_GetNextId
(
GWEN_POINTERLIST_ITERATOR
*it);
161
165
#ifdef __cplusplus
166
}
167
#endif
168
169
170
#endif
/* GWENHYWFAR_POINTERLIST_H */
171
172
Generated on Wed Aug 21 2013 18:32:10 for gwenhywfar by
1.8.4