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 | 5 |
6 /* From ppb_file_io.idl modified Wed Jul 13 16:41:25 2011. */ | 6 /* From ppb_file_io.idl modified Tue Aug 23 11:30:44 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_PPB_FILE_IO_H_ | 8 #ifndef PPAPI_C_PPB_FILE_IO_H_ |
9 #define PPAPI_C_PPB_FILE_IO_H_ | 9 #define PPAPI_C_PPB_FILE_IO_H_ |
10 | 10 |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
13 #include "ppapi/c/pp_file_info.h" | 13 #include "ppapi/c/pp_file_info.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 * @{ | 71 * @{ |
72 */ | 72 */ |
73 /** | 73 /** |
74 * 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 |
75 * (PP_FileType_Regular). | 75 * (PP_FileType_Regular). |
76 */ | 76 */ |
77 struct PPB_FileIO { | 77 struct PPB_FileIO { |
78 /** | 78 /** |
79 * Create() creates a new FileIO object. | 79 * Create() creates a new FileIO object. |
80 * | 80 * |
81 * @param[in] instance A <code>PP_Instance</code> indentifying the instance | 81 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
82 * with the file. | 82 * with the file. |
83 * | 83 * |
84 * @return A <code>PP_Resource</code> corresponding to a FileIO if | 84 * @return A <code>PP_Resource</code> corresponding to a FileIO if |
85 * successful or 0 if the module is invalid. | 85 * successful or 0 if the module is invalid. |
86 */ | 86 */ |
87 PP_Resource (*Create)(PP_Instance instance); | 87 PP_Resource (*Create)(PP_Instance instance); |
88 /** | 88 /** |
89 * IsFileIO() determines if the provided resource is a FileIO. | 89 * IsFileIO() determines if the provided resource is a FileIO. |
90 * | 90 * |
91 * @param[in] resource A <code>PP_Resource</code> corresponding to a FileIO. | 91 * @param[in] resource A <code>PP_Resource</code> corresponding to a FileIO. |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 * FileIO. | 237 * FileIO. |
238 */ | 238 */ |
239 void (*Close)(PP_Resource file_io); | 239 void (*Close)(PP_Resource file_io); |
240 }; | 240 }; |
241 /** | 241 /** |
242 * @} | 242 * @} |
243 */ | 243 */ |
244 | 244 |
245 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 245 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
246 | 246 |
OLD | NEW |