|
3 | 3 |
|
4 | 4 | /* |
5 | 5 | zip.h -- exported declarations. |
6 | | - Copyright (C) 1999-2021 Dieter Baron and Thomas Klausner |
| 6 | + Copyright (C) 1999-2024 Dieter Baron and Thomas Klausner |
7 | 7 |
|
8 | 8 | This file is part of libzip, a library to manipulate ZIP archives. |
9 | 9 | The authors can be contacted at <info@libzip.org> |
|
34 | 34 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | 35 | */ |
36 | 36 |
|
| 37 | +#if defined(__has_feature) |
| 38 | + #if !__has_feature(nullability) |
| 39 | + #define _Nullable |
| 40 | + #define _Nonnull |
| 41 | + #endif |
| 42 | +#else |
| 43 | + #define _Nullable |
| 44 | + #define _Nonnull |
| 45 | +#endif |
37 | 46 |
|
38 | 47 | #ifdef __cplusplus |
39 | 48 | extern "C" { |
@@ -154,6 +163,7 @@ extern "C" { |
154 | 163 | #define ZIP_ER_CANCELLED 32 /* N Operation cancelled */ |
155 | 164 | #define ZIP_ER_DATA_LENGTH 33 /* N Unexpected length of data */ |
156 | 165 | #define ZIP_ER_NOT_ALLOWED 34 /* N Not allowed in torrentzip */ |
| 166 | +#define ZIP_ER_TRUNCATED_ZIP 35 /* N Possibly truncated or corrupted zip archive */ |
157 | 167 |
|
158 | 168 | /* type of system error value */ |
159 | 169 |
|
@@ -256,7 +266,8 @@ enum zip_source_cmd { |
256 | 266 | ZIP_SOURCE_BEGIN_WRITE_CLONING, /* like ZIP_SOURCE_BEGIN_WRITE, but keep part of original file */ |
257 | 267 | ZIP_SOURCE_ACCEPT_EMPTY, /* whether empty files are valid archives */ |
258 | 268 | ZIP_SOURCE_GET_FILE_ATTRIBUTES, /* get additional file attributes */ |
259 | | - ZIP_SOURCE_SUPPORTS_REOPEN /* allow reading from changed entry */ |
| 269 | + ZIP_SOURCE_SUPPORTS_REOPEN, /* allow reading from changed entry */ |
| 270 | + ZIP_SOURCE_GET_DOS_TIME /* get last modification time in DOS format */ |
260 | 271 | }; |
261 | 272 | typedef enum zip_source_cmd zip_source_cmd_t; |
262 | 273 |
|
|
0 commit comments