| 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_ref.idl modified Wed Aug 24 20:52:42 2011. */ | 6 /* From ppb_file_ref.idl modified Wed Oct 5 14:06:02 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_FILE_REF_H_ | 8 #ifndef PPAPI_C_PPB_FILE_REF_H_ |
| 9 #define PPAPI_C_PPB_FILE_REF_H_ | 9 #define PPAPI_C_PPB_FILE_REF_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_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * @addtogroup Interfaces | 31 * @addtogroup Interfaces |
| 32 * @{ | 32 * @{ |
| 33 */ | 33 */ |
| 34 /** | 34 /** |
| 35 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in | 35 * The <code>PPB_FileRef</code> struct represents a "weak pointer" to a file in |
| 36 * a file system. This struct contains a <code>PP_FileSystemType</code> | 36 * a file system. This struct contains a <code>PP_FileSystemType</code> |
| 37 * identifier and a file path string. | 37 * identifier and a file path string. |
| 38 */ | 38 */ |
| 39 struct PPB_FileRef { | 39 struct PPB_FileRef_1_0 { |
| 40 /** | 40 /** |
| 41 * Create() creates a weak pointer to a file in the given file system. File | 41 * Create() creates a weak pointer to a file in the given file system. File |
| 42 * paths are POSIX style. | 42 * paths are POSIX style. |
| 43 * | 43 * |
| 44 * @param[in] resource A <code>PP_Resource</code> corresponding to a file | 44 * @param[in] resource A <code>PP_Resource</code> corresponding to a file |
| 45 * system. | 45 * system. |
| 46 * @param[in] path A path to the file. | 46 * @param[in] path A path to the file. |
| 47 * | 47 * |
| 48 * @return A <code>PP_Resource</code> corresponding to a file reference if | 48 * @return A <code>PP_Resource</code> corresponding to a file reference if |
| 49 * successful or 0 if the path is malformed. | 49 * successful or 0 if the path is malformed. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 * file reference. | 171 * file reference. |
| 172 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 172 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
| 173 * completion of Rename(). | 173 * completion of Rename(). |
| 174 * | 174 * |
| 175 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 175 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 176 */ | 176 */ |
| 177 int32_t (*Rename)(PP_Resource file_ref, | 177 int32_t (*Rename)(PP_Resource file_ref, |
| 178 PP_Resource new_file_ref, | 178 PP_Resource new_file_ref, |
| 179 struct PP_CompletionCallback callback); | 179 struct PP_CompletionCallback callback); |
| 180 }; | 180 }; |
| 181 |
| 182 typedef struct PPB_FileRef_1_0 PPB_FileRef; |
| 181 /** | 183 /** |
| 182 * @} | 184 * @} |
| 183 */ | 185 */ |
| 184 | 186 |
| 185 #endif /* PPAPI_C_PPB_FILE_REF_H_ */ | 187 #endif /* PPAPI_C_PPB_FILE_REF_H_ */ |
| 186 | 188 |
| OLD | NEW |