gwenhywfar  4.3.3
idlist64.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Mon Mar 01 2004
00003     copyright   : (C) 2004-2010 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *                                                                         *
00008  *   This library is free software; you can redistribute it and/or         *
00009  *   modify it under the terms of the GNU Lesser General Public            *
00010  *   License as published by the Free Software Foundation; either          *
00011  *   version 2.1 of the License, or (at your option) any later version.    *
00012  *                                                                         *
00013  *   This library is distributed in the hope that it will be useful,       *
00014  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00015  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00016  *   Lesser General Public License for more details.                       *
00017  *                                                                         *
00018  *   You should have received a copy of the GNU Lesser General Public      *
00019  *   License along with this library; if not, write to the Free Software   *
00020  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00021  *   MA  02111-1307  USA                                                   *
00022  *                                                                         *
00023  ***************************************************************************/
00024 
00030 #ifndef GWENHYWFAR_IDLIST64_H
00031 #define GWENHYWFAR_IDLIST64_H
00032 
00033 #ifdef __cplusplus
00034 extern "C" {
00035 #endif
00036 typedef struct GWEN_IDLIST64 GWEN_IDLIST64;
00037 typedef struct GWEN_IDLIST64_ITERATOR GWEN_IDLIST64_ITERATOR;
00038 #ifdef __cplusplus
00039 }
00040 #endif
00041 
00042 #include <gwenhywfar/gwenhywfarapi.h>
00043 #include <gwenhywfar/types.h>
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00062 GWENHYWFAR_API
00063 GWEN_IDLIST64 *GWEN_IdList64_new(void);
00064 
00068 GWENHYWFAR_API
00069 void GWEN_IdList64_free(GWEN_IDLIST64 *idl);
00070 
00071 
00072 
00073 GWENHYWFAR_API
00074 void GWEN_IdList64_Attach(GWEN_IDLIST64 *idl);
00075 
00076 
00083 GWENHYWFAR_API
00084 GWEN_IDLIST64 *GWEN_IdList64_dup(const GWEN_IDLIST64 *idl);
00085 
00086 
00090 GWENHYWFAR_API
00091 void GWEN_IdList64_Clear(GWEN_IDLIST64 *idl);
00092 
00096 GWENHYWFAR_API
00097 int GWEN_IdList64_AddId(GWEN_IDLIST64 *idl, uint64_t id);
00098 
00103 GWENHYWFAR_API
00104 int GWEN_IdList64_DelId(GWEN_IDLIST64 *idl, uint64_t id);
00105 
00110 GWENHYWFAR_API
00111 int GWEN_IdList64_HasId(const GWEN_IDLIST64 *idl, uint64_t id);
00112 
00118 GWENHYWFAR_API DEPRECATED
00119 uint64_t GWEN_IdList64_GetFirstId(GWEN_IDLIST64 *idl);
00120 
00126 GWENHYWFAR_API DEPRECATED
00127 uint64_t GWEN_IdList64_GetNextId(GWEN_IDLIST64 *idl);
00128 
00134 GWENHYWFAR_API DEPRECATED
00135 uint64_t GWEN_IdList64_GetFirstId2(const GWEN_IDLIST64 *idl, uint64_t *hdl);
00136 
00142 GWENHYWFAR_API DEPRECATED
00143 uint64_t GWEN_IdList64_GetNextId2(const GWEN_IDLIST64 *idl, uint64_t *hdl);
00144 
00145 
00149 GWENHYWFAR_API
00150 int GWEN_IdList64_Sort(GWEN_IDLIST64 *idl);
00151 
00152 
00153 GWENHYWFAR_API
00154 int GWEN_IdList64_ReverseSort(GWEN_IDLIST64 *idl);
00155 
00156 
00160 GWENHYWFAR_API
00161 int GWEN_IdList64_AppendId(GWEN_IDLIST64 *idl, uint64_t id);
00162 
00163 GWENHYWFAR_API
00164 uint64_t GWEN_IdList64_GetIdAt(const GWEN_IDLIST64 *idl, uint64_t index);
00165 
00166 
00167 GWENHYWFAR_API
00168 uint64_t GWEN_IdList64_GetEntryCount(const GWEN_IDLIST64 *idl);
00169 
00182 
00183 GWENHYWFAR_API
00184 GWEN_IDLIST64_ITERATOR *GWEN_IdList64_Iterator_new(GWEN_IDLIST64 *idl);
00185 
00186 GWENHYWFAR_API
00187 void GWEN_IdList64_Iterator_free(GWEN_IDLIST64_ITERATOR *it);
00188 
00189 GWENHYWFAR_API
00190 uint64_t GWEN_IdList64_Iterator_GetFirstId(GWEN_IDLIST64_ITERATOR *it);
00191 
00192 GWENHYWFAR_API
00193 uint64_t GWEN_IdList64_Iterator_GetNextId(GWEN_IDLIST64_ITERATOR *it);
00194 
00198 #ifdef __cplusplus
00199 }
00200 #endif
00201 
00202 
00203 #endif /* GWENHYWFAR_IDLIST64_H */
00204 
00205