Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

directory.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 $RCSfile: directory.h,v $ 00003 ------------------- 00004 cvs : $Id: directory.h,v 1.3 2003/02/11 22:24:10 aquamaniac Exp $ 00005 begin : Tue Dec 03 2002 00006 copyright : (C) 2002 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 00034 #ifndef CH_DIRECTORY_H 00035 #define CH_DIRECTORY_H 00036 00037 00038 #include <sys/types.h> 00039 #include <dirent.h> 00040 00041 #ifdef __cplusplus 00042 extern "C" { 00043 #endif 00044 00045 CHIPCARD_API typedef struct DIRECTORYDATASTRUCT DIRECTORYDATA; 00046 00047 00048 CHIPCARD_API struct DIRECTORYDATASTRUCT { 00049 DIR *handle; 00050 }; 00051 00052 00056 CHIPCARD_API DIRECTORYDATA *Directory_new(); 00057 00061 CHIPCARD_API void Directory_free(DIRECTORYDATA *d); 00062 00063 00064 00073 CHIPCARD_API int Directory_Open(DIRECTORYDATA *d, const char *n); 00074 00082 CHIPCARD_API int Directory_Close(DIRECTORYDATA *d); 00083 00095 CHIPCARD_API int Directory_Read(DIRECTORYDATA *d, 00096 char *buffer, 00097 int len); 00098 00107 CHIPCARD_API int Directory_Rewind(DIRECTORYDATA *d); 00108 00109 00110 #ifdef __cplusplus 00111 } 00112 #endif 00113 00114 00115 #endif /* CH_DIRECTORY_H */ 00116 00117 00118 00119

Generated on Wed Jul 28 14:56:49 2004 for libchipcard by doxygen 1.3.7