OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 #ifndef PPAPI_C_PP_FILE_INFO_H_ |
| 6 #define PPAPI_C_PP_FILE_INFO_H_ |
| 7 |
| 8 #include "ppapi/c/pp_macros.h" |
| 9 #include "ppapi/c/pp_stdint.h" |
| 10 #include "ppapi/c/pp_time.h" |
| 11 |
| 12 typedef enum { |
| 13 PP_FILETYPE_REGULAR, |
| 14 PP_FILETYPE_DIRECTORY, |
| 15 PP_FILETYPE_OTHER /* A catch-all for unidentified types. */ |
| 16 } PP_FileType; |
| 17 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileType, 4); |
| 18 |
| 19 typedef enum { |
| 20 PP_FILESYSTEMTYPE_INVALID = 0, /* For identifying invalid return values. */ |
| 21 PP_FILESYSTEMTYPE_EXTERNAL, |
| 22 PP_FILESYSTEMTYPE_LOCALPERSISTENT, |
| 23 PP_FILESYSTEMTYPE_LOCALTEMPORARY |
| 24 } PP_FileSystemType; |
| 25 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileSystemType, 4); |
| 26 |
| 27 struct PP_FileInfo { |
| 28 int64_t size; /* Measured in bytes */ |
| 29 PP_FileType type; |
| 30 PP_FileSystemType system_type; |
| 31 PP_Time creation_time; |
| 32 PP_Time last_access_time; |
| 33 PP_Time last_modified_time; |
| 34 }; |
| 35 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo, 40); |
| 36 |
| 37 #endif /* PPAPI_C_PP_FILE_INFO_H_ */ |
OLD | NEW |