| 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 Thu Dec 1 10:47:02 2011. */ | 6 /* From ppb_file_io.idl modified Wed Dec 14 18:08:00 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 */ | 66 */ |
| 67 | 67 |
| 68 /** | 68 /** |
| 69 * @addtogroup Interfaces | 69 * @addtogroup Interfaces |
| 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_1_0 { |
| 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> identifying 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); |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 * valid to call Open() again after a call to this method. | 246 * valid to call Open() again after a call to this method. |
| 247 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still | 247 * <strong>Note:</strong> If the FileIO object is destroyed, and it is still |
| 248 * open, then it will be implicitly closed, so you are not required to call | 248 * open, then it will be implicitly closed, so you are not required to call |
| 249 * Close(). | 249 * Close(). |
| 250 * | 250 * |
| 251 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file | 251 * @param[in] file_io A <code>PP_Resource</code> corresponding to a file |
| 252 * FileIO. | 252 * FileIO. |
| 253 */ | 253 */ |
| 254 void (*Close)(PP_Resource file_io); | 254 void (*Close)(PP_Resource file_io); |
| 255 }; | 255 }; |
| 256 |
| 257 typedef struct PPB_FileIO_1_0 PPB_FileIO; |
| 256 /** | 258 /** |
| 257 * @} | 259 * @} |
| 258 */ | 260 */ |
| 259 | 261 |
| 260 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 262 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
| 261 | 263 |
| OLD | NEW |