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 PPB_FILEIO_INTERFACE_0_5 | 67 #define PPB_FILEIO_INTERFACE_1_0 "PPB_FileIO;1.0" |
| 68 #define PPB_FILEIO_INTERFACE PPB_FILEIO_INTERFACE_1_0 |
68 | 69 |
69 /** | 70 /** |
70 * @addtogroup Interfaces | 71 * @addtogroup Interfaces |
71 * @{ | 72 * @{ |
72 */ | 73 */ |
73 /** | 74 /** |
74 * The <code>PPB_FileIO</code> struct is used to operate on a regular file | 75 * The <code>PPB_FileIO</code> struct is used to operate on a regular file |
75 * (PP_FileType_Regular). | 76 * (PP_FileType_Regular). |
76 */ | 77 */ |
77 struct PPB_FileIO { | 78 struct PPB_FileIO { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 * FileIO. | 246 * FileIO. |
246 */ | 247 */ |
247 void (*Close)(PP_Resource file_io); | 248 void (*Close)(PP_Resource file_io); |
248 }; | 249 }; |
249 /** | 250 /** |
250 * @} | 251 * @} |
251 */ | 252 */ |
252 | 253 |
253 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 254 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
254 | 255 |
OLD | NEW |