Boron 0.1.0

os_file.h

00001 #ifndef OS_FILE_H
00002 #define OS_FILE_H
00003 /*
00004    Operating system file interface.
00005 */
00006 
00007 
00008 enum OSFileInfoMask
00009 {
00010     FI_Size = 0x01,
00011     FI_Time = 0x02,
00012     FI_Type = 0x04
00013 };
00014 
00015 
00016 enum OSFileType
00017 {
00018     FI_File,
00019     FI_Link,
00020     FI_Dir,
00021     FI_Socket,
00022     FI_Other
00023 };
00024 
00025 
00026 typedef struct
00027 {
00028     int64_t size;
00029     double  accessed;
00030     double  modified;
00031     uint8_t type;
00032 }
00033 OSFileInfo;
00034 
00035 
00036 extern int ur_fileInfo( const char* path, OSFileInfo* info, int mask );
00037 
00038 
00039 #endif  /* OS_FILE_H */

Generated on 27 Jan 2012 by Doxygen 1.5.1