|
Blender
V2.59
|
00001 /* 00002 * $Id: BLI_storage_types.h 35642 2011-03-20 11:16:59Z elubie $ 00003 * 00004 * ***** BEGIN GPL LICENSE BLOCK ***** 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software Foundation, 00018 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 * 00020 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00021 * All rights reserved. 00022 * 00023 * The Original Code is: all of this file. 00024 * 00025 * Contributor(s): none yet. 00026 * 00027 * ***** END GPL LICENSE BLOCK ***** 00028 */ 00029 #ifndef BLI_STORAGE_TYPES_H 00030 #define BLI_STORAGE_TYPES_H 00031 00037 #include <sys/stat.h> 00038 00039 #if defined(WIN32) && !defined(FREE_WINDOWS) 00040 typedef unsigned int mode_t; 00041 #endif 00042 00043 struct ImBuf; 00044 00045 struct direntry{ 00046 char *string; 00047 mode_t type; 00048 char *relname; 00049 char *path; 00050 #if (defined(WIN32) || defined(WIN64)) && (_MSC_VER>=1500) 00051 struct _stat64 s; 00052 #elif defined(__MINGW32__) 00053 struct _stati64 s; 00054 #else 00055 struct stat s; 00056 #endif 00057 unsigned int flags; 00058 char size[16]; 00059 char mode1[4]; 00060 char mode2[4]; 00061 char mode3[4]; 00062 char owner[16]; 00063 char time[8]; 00064 char date[16]; 00065 char extra[16]; 00066 void *poin; 00067 int nr; 00068 struct ImBuf *image; 00069 unsigned int selflag; /* selection flag */ 00070 }; 00071 00072 struct dirlink 00073 { 00074 struct dirlink *next,*prev; 00075 char *name; 00076 }; 00077 00078 #endif /* BLI_STORAGE_TYPES_H */ 00079