00001 /*************************************************************************** 00002 $RCSfile$ 00003 ------------------- 00004 cvs : $Id: idlist.h 947 2005-12-05 11:42:45Z cstim $ 00005 begin : Mon Mar 01 2004 00006 copyright : (C) 2004 by Martin Preuss 00007 email : martin@libchipcard.de 00008 00009 *************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or * 00012 * modify it under the terms of the GNU Lesser General Public * 00013 * License as published by the Free Software Foundation; either * 00014 * version 2.1 of the License, or (at your option) any later version. * 00015 * * 00016 * This library is distributed in the hope that it will be useful, * 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 00019 * Lesser General Public License for more details. * 00020 * * 00021 * You should have received a copy of the GNU Lesser General Public * 00022 * License along with this library; if not, write to the Free Software * 00023 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * 00024 * MA 02111-1307 USA * 00025 * * 00026 ***************************************************************************/ 00027 00033 #ifndef GWENHYWFAR_IDLIST_H 00034 #define GWENHYWFAR_IDLIST_H 00035 00036 #ifdef __cplusplus 00037 extern "C" { 00038 #endif 00039 typedef struct GWEN_IDLIST GWEN_IDLIST; 00040 #ifdef __cplusplus 00041 } 00042 #endif 00043 00044 #include <gwenhywfar/gwenhywfarapi.h> 00045 #include <gwenhywfar/types.h> 00046 00047 #ifdef __cplusplus 00048 extern "C" { 00049 #endif 00050 00064 GWENHYWFAR_API 00065 GWEN_IDLIST *GWEN_IdList_new(); 00066 00070 GWENHYWFAR_API 00071 void GWEN_IdList_free(GWEN_IDLIST *idl); 00072 00073 00079 GWENHYWFAR_API 00080 GWEN_IDLIST *GWEN_IdList_dup(const GWEN_IDLIST *idl); 00081 00082 00086 GWENHYWFAR_API 00087 void GWEN_IdList_Clear(GWEN_IDLIST *idl); 00088 00092 GWENHYWFAR_API 00093 int GWEN_IdList_AddId(GWEN_IDLIST *idl, GWEN_TYPE_UINT32 id); 00094 00099 GWENHYWFAR_API 00100 int GWEN_IdList_DelId(GWEN_IDLIST *idl, GWEN_TYPE_UINT32 id); 00101 00106 GWENHYWFAR_API 00107 int GWEN_IdList_HasId(const GWEN_IDLIST *idl, GWEN_TYPE_UINT32 id); 00108 00112 GWENHYWFAR_API 00113 GWEN_TYPE_UINT32 GWEN_IdList_GetFirstId(GWEN_IDLIST *idl); 00114 00115 GWENHYWFAR_API 00116 GWEN_TYPE_UINT32 GWEN_IdList_GetNextId(GWEN_IDLIST *idl); 00117 00121 GWENHYWFAR_API 00122 int GWEN_IdList_Sort(GWEN_IDLIST *idl); 00123 00127 #ifdef __cplusplus 00128 } 00129 #endif 00130 00131 00132 #endif /* GWENHYWFAR_IDLIST_H */ 00133 00134