Blender V4.3
BLI_fileops_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
12#include <sys/stat.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18#if defined(WIN32)
19typedef unsigned int mode_t;
20#endif
21
22#define FILELIST_DIRENTRY_SIZE_LEN 16
23#define FILELIST_DIRENTRY_MODE_LEN 4
24#define FILELIST_DIRENTRY_OWNER_LEN 16
25#define FILELIST_DIRENTRY_TIME_LEN 8
26#define FILELIST_DIRENTRY_DATE_LEN 16
27
28struct direntry {
30 const char *relname;
31 const char *path;
32#ifdef WIN32 /* keep in sync with the definition of BLI_stat_t in BLI_fileops.h */
33# if defined(_MSC_VER)
34 struct _stat64 s;
35# else
36 struct _stat s;
37# endif
38#else
39 struct stat s;
40#endif
41};
42
43struct dirlink {
44 struct dirlink *next, *prev;
45 char *name;
46};
47
48#ifdef __cplusplus
49}
50#endif
unsigned int mode_t
const char * relname
const char * path