directory.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile$
00003                              -------------------
00004     cvs         : $Id$
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 GWEN_DIRECTORY_H
00035 #define GWEN_DIRECTORY_H
00036 
00037 #ifdef __cplusplus
00038 extern "C" {
00039 #endif
00040 
00041 typedef struct GWEN_DIRECTORY GWEN_DIRECTORY;
00042 
00043 #ifdef __cplusplus
00044 }
00045 #endif
00046 
00047 
00048 #include <gwenhywfar/gwenhywfarapi.h>
00049 #include <gwenhywfar/buffer.h>
00050 #include <gwenhywfar/stringlist.h>
00051 
00052 #ifdef __cplusplus
00053 extern "C" {
00054 #endif
00055 
00060 #define GWEN_DIR_FLAGS_PUBLIC_PATH 0x00010000
00061 #define GWEN_DIR_FLAGS_PUBLIC_NAME 0x00020000
00062 
00073 
00077 GWENHYWFAR_API GWEN_DIRECTORY *GWEN_Directory_new();
00078 
00082 GWENHYWFAR_API void GWEN_Directory_free(GWEN_DIRECTORY *d);
00083 
00092 GWENHYWFAR_API
00093   int GWEN_Directory_Open(GWEN_DIRECTORY *d, const char *n);
00094 
00102 GWENHYWFAR_API int GWEN_Directory_Close(GWEN_DIRECTORY *d);
00103 
00115 GWENHYWFAR_API int GWEN_Directory_Read(GWEN_DIRECTORY *d,
00116                                        char *buffer,
00117                                        unsigned int len);
00118 
00127 GWENHYWFAR_API int GWEN_Directory_Rewind(GWEN_DIRECTORY *d);
00128 
00129 
00153 GWENHYWFAR_API
00154 int GWEN_Directory_GetHomeDirectory(char *buffer, unsigned int size);
00155 
00167 GWENHYWFAR_API
00168 int GWEN_Directory_GetTmpDirectory(char *buffer, unsigned int size);
00169 
00179 GWENHYWFAR_API
00180 int GWEN_Directory_GetPrefixDirectory(char *buffer, unsigned int size);
00181 
00182 
00190 GWENHYWFAR_API
00191 int GWEN_Directory_GetPath(const char *path, unsigned int flags);
00192 
00193 
00197 GWENHYWFAR_API
00198 int GWEN_Directory_Create(const char *path);
00199 
00204 GWENHYWFAR_API
00205 int GWEN_Directory_CreatePublic(const char *path);
00206 
00220 GWENHYWFAR_API
00221 int GWEN_Directory_OsifyPath(const char *path, GWEN_BUFFER *pbuf,
00222                              int transformDriveElement);
00223 
00224 
00225 GWENHYWFAR_API
00226 int GWEN_Directory_FindFileInPaths(const GWEN_STRINGLIST *paths,
00227                                    const char *filePath,
00228                                    GWEN_BUFFER *fbuf);
00229 
00230 GWENHYWFAR_API
00231 int GWEN_Directory_FindPathForFile(const GWEN_STRINGLIST *paths,
00232                                    const char *filePath,
00233                                    GWEN_BUFFER *fbuf);
00234 
00246 GWENHYWFAR_API
00247 int GWEN_Directory_GetAllEntries(char *folder, GWEN_STRINGLIST *sl,
00248                                  const char *mask);
00249 
00265 GWENHYWFAR_API
00266 int GWEN_Directory_GetFileEntriesWithType(char *folder, GWEN_STRINGLIST *sl,
00267                                           const char *mask);
00268 
00277 GWENHYWFAR_API
00278 int GWEN_Directory_GetFileEntries(char *folder, GWEN_STRINGLIST *sl,
00279                                   const char *mask);
00280 
00281 
00290 GWENHYWFAR_API
00291 int GWEN_Directory_GetDirEntries(char *folder, GWEN_STRINGLIST *sl,
00292                                  const char *mask);
00293 
00294  /* defgroup */
00296 
00297 
00298 #ifdef __cplusplus
00299 }
00300 #endif
00301 
00302 
00303 #endif /* GWEN_DIRECTORY_H */
00304 
00305 
00306 
00307 

Generated by  doxygen 1.6.2