Shadowrun: Awakened 29 September 2011 - Build 871
_FindFirst.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 #ifndef GCC_FINDFIRST_H
00007 #define GCC_FINDFIRST_H
00008 
00009 #if (defined(__GNUC__) || defined(__ARMCC_VERSION) || defined(__GCCXML__) || defined(__S3E__) ) && !defined(__WIN32)
00010 
00011 #include <dirent.h>
00012 
00013 #include "RakString.h"
00014 
00015 #define _A_NORMAL       0x00        // Normal file
00016 #define _A_RDONLY       0x01        // Read-only file
00017 #define _A_HIDDEN       0x02        // Hidden file
00018 #define _A_SYSTEM       0x04        // System file
00019 #define _A_VOLID            0x08        // Volume ID
00020 #define _A_SUBDIR       0x10        // Subdirectory
00021 #define _A_ARCH             0x20        // File changed since last archive
00022 #define FA_NORMAL       0x00        // Synonym of _A_NORMAL
00023 #define FA_RDONLY       0x01        // Synonym of _A_RDONLY
00024 #define FA_HIDDEN       0x02        // Synonym of _A_HIDDEN
00025 #define FA_SYSTEM       0x04        // Synonym of _A_SYSTEM
00026 #define FA_LABEL            0x08        // Synonym of _A_VOLID
00027 #define FA_DIREC            0x10        // Synonym of _A_SUBDIR
00028 #define FA_ARCH             0x20        // Synonym of _A_ARCH
00029 
00030 
00031 const unsigned STRING_BUFFER_SIZE = 512;
00032 
00033 typedef struct _finddata_t
00034 {
00035     char            name[STRING_BUFFER_SIZE];
00036     int            attrib;
00037     unsigned long   size;
00038 } _finddata;
00039 
00043 typedef struct _findinfo_t
00044 {
00045     DIR*    openedDir;
00046     RakNet::RakString filter;    
00047     RakNet::RakString dirName;
00048 } _findinfo;
00049 
00050 long _findfirst(const char *name, _finddata_t *f);
00051 int _findnext(long h, _finddata_t *f);
00052 int _findclose(long h);
00053 
00054 #endif
00055 #endif
00056 

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net