Pepper_31_C_interfaces
Main Page
Modules
Classes
Files
File List
File Members
pp_file_info.h
Go to the documentation of this file.
1
/* Copyright (c) 2012 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
6
/* From pp_file_info.idl modified Tue Sep 10 08:04:38 2013. */
7
8
#ifndef PPAPI_C_PP_FILE_INFO_H_
9
#define PPAPI_C_PP_FILE_INFO_H_
10
11
#include "ppapi/c/pp_macros.h"
12
#include "ppapi/c/pp_stdint.h"
13
#include "ppapi/c/pp_time.h"
14
15
/**
16
* @file
17
* This file defines three enumerations for use in the PPAPI C file IO APIs.
18
*/
19
20
21
/**
22
* @addtogroup Enums
23
* @{
24
*/
25
/**
26
* The <code>PP_FileType</code> enum contains file type constants.
27
*/
28
typedef
enum
{
29
/** A regular file type */
30
PP_FILETYPE_REGULAR
= 0,
31
/** A directory */
32
PP_FILETYPE_DIRECTORY
= 1,
33
/** A catch-all for unidentified types */
34
PP_FILETYPE_OTHER
= 2
35
}
PP_FileType
;
36
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_FileType
, 4);
37
38
/**
39
* The <code>PP_FileSystemType</code> enum contains file system type constants.
40
*/
41
typedef
enum
{
42
/** For identified invalid return values */
43
PP_FILESYSTEMTYPE_INVALID
= 0,
44
/** For external file system types */
45
PP_FILESYSTEMTYPE_EXTERNAL
= 1,
46
/** For local persistent file system types */
47
PP_FILESYSTEMTYPE_LOCALPERSISTENT
= 2,
48
/** For local temporary file system types */
49
PP_FILESYSTEMTYPE_LOCALTEMPORARY
= 3,
50
/** For isolated file system types */
51
PP_FILESYSTEMTYPE_ISOLATED
= 4,
52
/** For file system types on local storage devices */
53
PP_FILESYSTEMTYPE_REMOVABLESTORAGE
= 101
54
}
PP_FileSystemType
;
55
PP_COMPILE_ASSERT_SIZE_IN_BYTES
(
PP_FileSystemType
, 4);
56
/**
57
* @}
58
*/
59
60
/**
61
* @addtogroup Structs
62
* @{
63
*/
64
/**
65
* The <code>PP_FileInfo</code> struct represents all information about a file,
66
* such as size, type, and creation time.
67
*/
68
struct
PP_FileInfo
{
69
/** This value represents the size of the file measured in bytes */
70
int64_t
size
;
71
/**
72
* This value represents the type of file as defined by the
73
* <code>PP_FileType</code> enum
74
*/
75
PP_FileType
type
;
76
/**
77
* This value represents the file system type of the file as defined by the
78
* <code>PP_FileSystemType</code> enum.
79
*/
80
PP_FileSystemType
system_type
;
81
/**
82
* This value represents the creation time of the file.
83
*/
84
PP_Time
creation_time
;
85
/**
86
* This value represents the last time the file was accessed.
87
*/
88
PP_Time
last_access_time
;
89
/**
90
* This value represents the last time the file was modified.
91
*/
92
PP_Time
last_modified_time
;
93
};
94
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
(
PP_FileInfo
, 40);
95
/**
96
* @}
97
*/
98
99
#endif
/* PPAPI_C_PP_FILE_INFO_H_ */
100
PP_Time
double PP_Time
Definition:
pp_time.h:29
PP_FILESYSTEMTYPE_LOCALPERSISTENT
Definition:
pp_file_info.h:47
PP_FileInfo::creation_time
PP_Time creation_time
Definition:
pp_file_info.h:84
PP_FILETYPE_REGULAR
Definition:
pp_file_info.h:30
PP_FILESYSTEMTYPE_INVALID
Definition:
pp_file_info.h:43
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo, 40)
PP_FILESYSTEMTYPE_LOCALTEMPORARY
Definition:
pp_file_info.h:49
PP_COMPILE_ASSERT_SIZE_IN_BYTES
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileType, 4)
PP_FILESYSTEMTYPE_EXTERNAL
Definition:
pp_file_info.h:45
PP_FileInfo::last_modified_time
PP_Time last_modified_time
Definition:
pp_file_info.h:92
PP_FILETYPE_DIRECTORY
Definition:
pp_file_info.h:32
PP_FileSystemType
PP_FileSystemType
Definition:
pp_file_info.h:41
PP_FILESYSTEMTYPE_ISOLATED
Definition:
pp_file_info.h:51
PP_FileType
PP_FileType
Definition:
pp_file_info.h:28
PP_FILESYSTEMTYPE_REMOVABLESTORAGE
Definition:
pp_file_info.h:53
PP_FileInfo::size
int64_t size
Definition:
pp_file_info.h:70
PP_FileInfo::last_access_time
PP_Time last_access_time
Definition:
pp_file_info.h:88
PP_FileInfo::system_type
PP_FileSystemType system_type
Definition:
pp_file_info.h:80
PP_FileInfo::type
PP_FileType type
Definition:
pp_file_info.h:75
PP_FILETYPE_OTHER
Definition:
pp_file_info.h:34
PP_FileInfo
Definition:
pp_file_info.h:68
Generated on Wed May 4 2016 11:31:13 for Pepper_31_C_interfaces by
1.8.6