gwenhywfar  4.15.3
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
38 #ifdef __cplusplus
39 }
40 #endif
41 
43 #include <gwenhywfar/types.h>
44 
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
48 
64 
70 
71 
72 
75 
76 
85 
86 
92 
97 int GWEN_PointerList_AddPtr(GWEN_POINTERLIST *idl, void *ptr);
98 
104 int GWEN_PointerList_DelPtr(GWEN_POINTERLIST *idl, void *ptr);
105 
111 int GWEN_PointerList_HasPtr(const GWEN_POINTERLIST *idl, void *ptr);
112 
116 void *GWEN_PointerList_GetFirstPtr(const GWEN_POINTERLIST *idl, uint64_t *hdl);
117 
121 void *GWEN_PointerList_GetNextPtr(const GWEN_POINTERLIST *idl, uint64_t *hdl);
122 
123 
128 int GWEN_PointerList_AppendPtr(GWEN_POINTERLIST *idl, void *ptr);
129 
131 void *GWEN_PointerList_GetPtrAt(const GWEN_POINTERLIST *idl, uint64_t index);
132 
133 
136 
149 
152 
155 
158 
161 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 
170 #endif /* GWENHYWFAR_POINTERLIST_H */
171 
172 
GWENHYWFAR_API int GWEN_PointerList_AppendPtr(GWEN_POINTERLIST *idl, void *ptr)
GWENHYWFAR_API GWEN_POINTERLIST_ITERATOR * GWEN_PointerList_Iterator_new(GWEN_POINTERLIST *idl)
GWENHYWFAR_API uint64_t GWEN_PointerList_GetEntryCount(const GWEN_POINTERLIST *idl)
GWENHYWFAR_API void GWEN_PointerList_free(GWEN_POINTERLIST *idl)
GWENHYWFAR_API int GWEN_PointerList_AddPtr(GWEN_POINTERLIST *idl, void *ptr)
GWENHYWFAR_API void * GWEN_PointerList_GetPtrAt(const GWEN_POINTERLIST *idl, uint64_t index)
GWENHYWFAR_API void GWEN_PointerList_Attach(GWEN_POINTERLIST *idl)
GWENHYWFAR_API int GWEN_PointerList_DelPtr(GWEN_POINTERLIST *idl, void *ptr)
GWENHYWFAR_API void * GWEN_PointerList_GetFirstPtr(const GWEN_POINTERLIST *idl, uint64_t *hdl)
GWENHYWFAR_API void GWEN_PointerList_Clear(GWEN_POINTERLIST *idl)
GWENHYWFAR_API int GWEN_PointerList_HasPtr(const GWEN_POINTERLIST *idl, void *ptr)
GWENHYWFAR_API GWEN_POINTERLIST * GWEN_PointerList_dup(const GWEN_POINTERLIST *idl)
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API void * GWEN_PointerList_Iterator_GetFirstId(GWEN_POINTERLIST_ITERATOR *it)
GWENHYWFAR_API void GWEN_PointerList_Iterator_free(GWEN_POINTERLIST_ITERATOR *it)
GWENHYWFAR_API void * GWEN_PointerList_Iterator_GetNextId(GWEN_POINTERLIST_ITERATOR *it)
struct GWEN_POINTERLIST GWEN_POINTERLIST
Definition: pointerlist.h:36
GWENHYWFAR_API GWEN_POINTERLIST * GWEN_PointerList_new(void)
struct GWEN_POINTERLIST_ITERATOR GWEN_POINTERLIST_ITERATOR
Definition: pointerlist.h:37
GWENHYWFAR_API void * GWEN_PointerList_GetNextPtr(const GWEN_POINTERLIST *idl, uint64_t *hdl)