| 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 Aug 24 20:51:24 2011. */ | 6 /* From ppb_file_io.idl modified Mon Aug 29 10:11:34 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 * @{ | 70 * @{ |
| 71 */ | 71 */ |
| 72 /** | 72 /** |
| 73 * The <code>PPB_FileIO</code> struct is used to operate on a regular file | 73 * The <code>PPB_FileIO</code> struct is used to operate on a regular file |
| 74 * (PP_FileType_Regular). | 74 * (PP_FileType_Regular). |
| 75 */ | 75 */ |
| 76 struct PPB_FileIO { | 76 struct PPB_FileIO { |
| 77 /** | 77 /** |
| 78 * Create() creates a new FileIO object. | 78 * Create() creates a new FileIO object. |
| 79 * | 79 * |
| 80 * @param[in] instance A <code>PP_Instance</code> indentifying the instance | 80 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
| 81 * with the file. | 81 * with the file. |
| 82 * | 82 * |
| 83 * @return A <code>PP_Resource</code> corresponding to a FileIO if | 83 * @return A <code>PP_Resource</code> corresponding to a FileIO if |
| 84 * successful or 0 if the module is invalid. | 84 * successful or 0 if the module is invalid. |
| 85 */ | 85 */ |
| 86 PP_Resource (*Create)(PP_Instance instance); | 86 PP_Resource (*Create)(PP_Instance instance); |
| 87 /** | 87 /** |
| 88 * IsFileIO() determines if the provided resource is a FileIO. | 88 * IsFileIO() determines if the provided resource is a FileIO. |
| 89 * | 89 * |
| 90 * @param[in] resource A <code>PP_Resource</code> corresponding to a FileIO. | 90 * @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... |
| 236 * FileIO. | 236 * FileIO. |
| 237 */ | 237 */ |
| 238 void (*Close)(PP_Resource file_io); | 238 void (*Close)(PP_Resource file_io); |
| 239 }; | 239 }; |
| 240 /** | 240 /** |
| 241 * @} | 241 * @} |
| 242 */ | 242 */ |
| 243 | 243 |
| 244 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 244 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
| 245 | 245 |
| OLD | NEW |