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.
7 * This file defines three enumerations for use in the PPAPI C file IO APIs.
11 * The <code>PP_FileType</code> enum contains file type constants.
15 /** A regular file type */
16 PP_FILETYPE_REGULAR
= 0,
18 PP_FILETYPE_DIRECTORY
= 1,
19 /** A catch-all for unidentified types */
24 * The <code>PP_FileSystemType</code> enum contains file system type constants.
27 enum PP_FileSystemType
{
28 /** For identified invalid return values */
29 PP_FILESYSTEMTYPE_INVALID
= 0,
30 /** For external file system types */
31 PP_FILESYSTEMTYPE_EXTERNAL
= 1,
32 /** For local persistant file system types */
33 PP_FILESYSTEMTYPE_LOCALPERSISTENT
= 2,
34 /** For local temporary file system types */
35 PP_FILESYSTEMTYPE_LOCALTEMPORARY
= 3
39 * The <code>PP_FileInfo</code> struct represents all information about a file,
40 * such as size, type, and creation time.
44 /** This value represents the size of the file measured in bytes */
48 * This value represents the type of file as defined by the
49 * <code>PP_FileType</code> enum
54 * This value represents the file system type of the file as defined by the
55 * <code>PP_FileSystemType</code> enum.
57 PP_FileSystemType system_type
;
60 * This value represents the creation time of the file.
62 PP_Time creation_time
;
65 * This value represents the last time the file was accessed.
67 PP_Time last_access_time
;
70 * This value represents the last time the file was modified.
72 PP_Time last_modified_time
;