gwenhywfar  4.11.0beta
idlist.h
Go to the documentation of this file.
1 /***************************************************************************
2  $RCSfile$
3  -------------------
4  cvs : $Id$
5  begin : Mon Mar 01 2004
6  copyright : (C) 2004 by Martin Preuss
7  email : martin@libchipcard.de
8 
9  ***************************************************************************
10  * *
11  * This library is free software; you can redistribute it and/or *
12  * modify it under the terms of the GNU Lesser General Public *
13  * License as published by the Free Software Foundation; either *
14  * version 2.1 of the License, or (at your option) any later version. *
15  * *
16  * This library is distributed in the hope that it will be useful, *
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
19  * Lesser General Public License for more details. *
20  * *
21  * You should have received a copy of the GNU Lesser General Public *
22  * License along with this library; if not, write to the Free Software *
23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
24  * MA 02111-1307 USA *
25  * *
26  ***************************************************************************/
27 
33 #ifndef GWENHYWFAR_IDLIST_H
34 #define GWENHYWFAR_IDLIST_H
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 typedef struct GWEN_IDLIST GWEN_IDLIST;
40 #ifdef __cplusplus
41 }
42 #endif
43 
45 #include <gwenhywfar/types.h>
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
66 
71 void GWEN_IdList_free(GWEN_IDLIST *idl);
72 
73 
81 
82 
88 
93 int GWEN_IdList_AddId(GWEN_IDLIST *idl, uint32_t id);
94 
100 int GWEN_IdList_DelId(GWEN_IDLIST *idl, uint32_t id);
101 
107 int GWEN_IdList_HasId(const GWEN_IDLIST *idl, uint32_t id);
108 
113 uint32_t GWEN_IdList_GetFirstId(GWEN_IDLIST *idl);
114 
116 uint32_t GWEN_IdList_GetNextId(GWEN_IDLIST *idl);
117 
126 uint32_t GWEN_IdList_GetFirstId2(const GWEN_IDLIST *idl,
127  uint32_t *hdl);
128 
137 uint32_t GWEN_IdList_GetNextId2(const GWEN_IDLIST *idl,
138  uint32_t *hdl);
139 
140 
145 int GWEN_IdList_Sort(GWEN_IDLIST *idl);
146 
150 #ifdef __cplusplus
151 }
152 #endif
153 
154 
155 #endif /* GWENHYWFAR_IDLIST_H */
156 
157 
GWENHYWFAR_API GWEN_IDLIST * GWEN_IdList_new(void)
GWENHYWFAR_API void GWEN_IdList_free(GWEN_IDLIST *idl)
GWENHYWFAR_API uint32_t GWEN_IdList_GetNextId(GWEN_IDLIST *idl)
GWENHYWFAR_API int GWEN_IdList_HasId(const GWEN_IDLIST *idl, uint32_t id)
GWENHYWFAR_API void GWEN_IdList_Clear(GWEN_IDLIST *idl)
struct GWEN_IDLIST GWEN_IDLIST
Definition: idlist.h:39
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API GWEN_IDLIST * GWEN_IdList_dup(const GWEN_IDLIST *idl)
GWENHYWFAR_API int GWEN_IdList_DelId(GWEN_IDLIST *idl, uint32_t id)
GWENHYWFAR_API uint32_t GWEN_IdList_GetNextId2(const GWEN_IDLIST *idl, uint32_t *hdl)
GWENHYWFAR_API uint32_t GWEN_IdList_GetFirstId2(const GWEN_IDLIST *idl, uint32_t *hdl)
GWENHYWFAR_API int GWEN_IdList_Sort(GWEN_IDLIST *idl)
GWENHYWFAR_API uint32_t GWEN_IdList_GetFirstId(GWEN_IDLIST *idl)
GWENHYWFAR_API int GWEN_IdList_AddId(GWEN_IDLIST *idl, uint32_t id)