Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_fileops_types.h
| Show All 33 Lines | |||||
| */ | */ | ||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||
| #if defined(WIN32) && !defined(FREE_WINDOWS) | #if defined(WIN32) && !defined(FREE_WINDOWS) | ||||
| typedef unsigned int mode_t; | typedef unsigned int mode_t; | ||||
| #endif | #endif | ||||
| struct ImBuf; | #define FILELIST_DIRENTRY_SIZE_LEN 16 | ||||
| #define FILELIST_DIRENTRY_MODE_LEN 4 | |||||
| #define FILELIST_DIRENTRY_OWNER_LEN 16 | |||||
| #define FILELIST_DIRENTRY_TIME_LEN 8 | |||||
| #define FILELIST_DIRENTRY_DATE_LEN 16 | |||||
| struct direntry { | struct direntry { | ||||
| mode_t type; | mode_t type; | ||||
| char *relname; | char *relname; | ||||
| char *path; | char *path; | ||||
| #ifdef WIN32 /* keep in sync with the definition of BLI_stat_t in BLI_fileops.h */ | #ifdef WIN32 /* keep in sync with the definition of BLI_stat_t in BLI_fileops.h */ | ||||
| # if defined(_MSC_VER) || defined(__MINGW64__) | # if defined(_MSC_VER) || defined(__MINGW64__) | ||||
| struct _stat64 s; | struct _stat64 s; | ||||
| # elif defined(__MINGW32__) | # elif defined(__MINGW32__) | ||||
| struct _stati64 s; | struct _stati64 s; | ||||
| # else | # else | ||||
| struct _stat s; | struct _stat s; | ||||
| # endif | # endif | ||||
| #else | #else | ||||
| struct stat s; | struct stat s; | ||||
| #endif | #endif | ||||
| unsigned int flags; | |||||
| char size[16]; | |||||
| char mode1[4]; | |||||
| char mode2[4]; | |||||
| char mode3[4]; | |||||
| char owner[16]; | |||||
| char time[8]; | |||||
| char date[16]; | |||||
| char extra[16]; | |||||
| void *poin; | |||||
| int nr; | |||||
| struct ImBuf *image; | |||||
| unsigned int selflag; /* selection flag */ | |||||
| }; | }; | ||||
| struct dirlink { | struct dirlink { | ||||
| struct dirlink *next, *prev; | struct dirlink *next, *prev; | ||||
| char *name; | char *name; | ||||
| }; | }; | ||||
| #endif /* __BLI_FILEOPS_TYPES_H__ */ | #endif /* __BLI_FILEOPS_TYPES_H__ */ | ||||