| 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_system.idl modified Mon Aug 29 10:11:34 2011. */ | 6 /* From ppb_file_system.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_FILE_SYSTEM_H_ | 8 #ifndef PPAPI_C_PPB_FILE_SYSTEM_H_ |
| 9 #define PPAPI_C_PPB_FILE_SYSTEM_H_ | 9 #define PPAPI_C_PPB_FILE_SYSTEM_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" |
| 17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
| 18 | 18 |
| 19 #define PPB_FILESYSTEM_INTERFACE_1_0 "PPB_FileSystem;1.0" | 19 #define PPB_FILESYSTEM_INTERFACE_1_0 "PPB_FileSystem;1.0" |
| 20 #define PPB_FILESYSTEM_INTERFACE PPB_FILESYSTEM_INTERFACE_1_0 | 20 #define PPB_FILESYSTEM_INTERFACE PPB_FILESYSTEM_INTERFACE_1_0 |
| 21 | 21 |
| 22 /** | 22 /** |
| 23 * @file | 23 * @file |
| 24 * This file defines the API to create a file system associated with a file. | 24 * This file defines the API to create a file system associated with a file. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * @addtogroup Interfaces | 29 * @addtogroup Interfaces |
| 30 * @{ | 30 * @{ |
| 31 */ | 31 */ |
| 32 /** | 32 /** |
| 33 * The <code>PPB_FileSystem</code> struct identifies the file system type | 33 * The <code>PPB_FileSystem</code> struct identifies the file system type |
| 34 * associated with a file. | 34 * associated with a file. |
| 35 */ | 35 */ |
| 36 struct PPB_FileSystem { | 36 struct PPB_FileSystem_1_0 { |
| 37 /** Create() creates a file system object of the given type. | 37 /** Create() creates a file system object of the given type. |
| 38 * | 38 * |
| 39 * @param[in] instance A <code>PP_Instance</code> identifying the instance | 39 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
| 40 * with the file. | 40 * with the file. |
| 41 * @param[in] type A file system type as defined by | 41 * @param[in] type A file system type as defined by |
| 42 * <code>PP_FileSystemType</code> enum. | 42 * <code>PP_FileSystemType</code> enum. |
| 43 * | 43 * |
| 44 * @return A <code>PP_Resource</code> corresponding to a file system if | 44 * @return A <code>PP_Resource</code> corresponding to a file system if |
| 45 * successful. | 45 * successful. |
| 46 */ | 46 */ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 * @param[in] file_system A <code>PP_Resource</code> corresponding to a file | 80 * @param[in] file_system A <code>PP_Resource</code> corresponding to a file |
| 81 * system. | 81 * system. |
| 82 * | 82 * |
| 83 * @return A <code>PP_FileSystemType</code> with the file system type if | 83 * @return A <code>PP_FileSystemType</code> with the file system type if |
| 84 * valid or <code>PP_FILESYSTEMTYPE_INVALID</code> if the provided resource | 84 * valid or <code>PP_FILESYSTEMTYPE_INVALID</code> if the provided resource |
| 85 * is not a valid file system. It is valid to call this function even before | 85 * is not a valid file system. It is valid to call this function even before |
| 86 * Open() completes. | 86 * Open() completes. |
| 87 */ | 87 */ |
| 88 PP_FileSystemType (*GetType)(PP_Resource file_system); | 88 PP_FileSystemType (*GetType)(PP_Resource file_system); |
| 89 }; | 89 }; |
| 90 |
| 91 typedef struct PPB_FileSystem_1_0 PPB_FileSystem; |
| 90 /** | 92 /** |
| 91 * @} | 93 * @} |
| 92 */ | 94 */ |
| 93 | 95 |
| 94 #endif /* PPAPI_C_PPB_FILE_SYSTEM_H_ */ | 96 #endif /* PPAPI_C_PPB_FILE_SYSTEM_H_ */ |
| 95 | 97 |
| OLD | NEW |