OLD | NEW |
1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 #ifndef PPAPI_C_PPB_FILE_IO_H_ | 5 #ifndef PPAPI_C_PPB_FILE_IO_H_ |
6 #define PPAPI_C_PPB_FILE_IO_H_ | 6 #define PPAPI_C_PPB_FILE_IO_H_ |
7 | 7 |
8 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/c/pp_macros.h" | 10 #include "ppapi/c/pp_macros.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 * file already exists, then the FileIO::Open() call will fail. | 57 * file already exists, then the FileIO::Open() call will fail. |
58 */ | 58 */ |
59 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4 | 59 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4 |
60 } PP_FileOpenFlags; | 60 } PP_FileOpenFlags; |
61 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); | 61 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); |
62 /** | 62 /** |
63 * @} | 63 * @} |
64 */ | 64 */ |
65 | 65 |
66 #define PPB_FILEIO_INTERFACE_0_5 "PPB_FileIO;0.5" | 66 #define PPB_FILEIO_INTERFACE_0_5 "PPB_FileIO;0.5" |
67 #define PPB_FILEIO_INTERFACE_1_0 "PPB_FileIO;1.0" | 67 #define PPB_FILEIO_INTERFACE PPB_FILEIO_INTERFACE_0_5 |
68 #define PPB_FILEIO_INTERFACE PPB_FILEIO_INTERFACE_1_0 | |
69 | 68 |
70 /** | 69 /** |
71 * @addtogroup Interfaces | 70 * @addtogroup Interfaces |
72 * @{ | 71 * @{ |
73 */ | 72 */ |
74 /** | 73 /** |
75 * The <code>PPB_FileIO</code> struct is used to operate on a regular file | 74 * The <code>PPB_FileIO</code> struct is used to operate on a regular file |
76 * (PP_FileType_Regular). | 75 * (PP_FileType_Regular). |
77 */ | 76 */ |
78 struct PPB_FileIO { | 77 struct PPB_FileIO { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 * FileIO. | 245 * FileIO. |
247 */ | 246 */ |
248 void (*Close)(PP_Resource file_io); | 247 void (*Close)(PP_Resource file_io); |
249 }; | 248 }; |
250 /** | 249 /** |
251 * @} | 250 * @} |
252 */ | 251 */ |
253 | 252 |
254 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 253 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
255 | 254 |
OLD | NEW |