Blender  V2.93
BLI_fileops_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
20 #pragma once
21 
27 #include <sys/stat.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #if defined(WIN32)
34 typedef unsigned int mode_t;
35 #endif
36 
37 #define FILELIST_DIRENTRY_SIZE_LEN 16
38 #define FILELIST_DIRENTRY_MODE_LEN 4
39 #define FILELIST_DIRENTRY_OWNER_LEN 16
40 #define FILELIST_DIRENTRY_TIME_LEN 8
41 #define FILELIST_DIRENTRY_DATE_LEN 16
42 
43 struct direntry {
45  const char *relname;
46  const char *path;
47 #ifdef WIN32 /* keep in sync with the definition of BLI_stat_t in BLI_fileops.h */
48 # if defined(_MSC_VER)
49  struct _stat64 s;
50 # else
51  struct _stat s;
52 # endif
53 #else
54  struct stat s;
55 #endif
56 };
57 
58 struct dirlink {
59  struct dirlink *next, *prev;
60  char *name;
61 };
62 
63 #ifdef __cplusplus
64 }
65 #endif
unsigned int mode_t
Definition: BLI_winstuff.h:80
struct stat s
const char * relname
const char * path