| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 Fri Nov 16 10:46:53 2012. */ | 6 /* From ppb_file_io.idl modified Tue Jun 11 12:14:29 2013. */ |
| 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_array_output.h" | 11 #include "ppapi/c/pp_array_output.h" |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_file_info.h" | 14 #include "ppapi/c/pp_file_info.h" |
| 15 #include "ppapi/c/pp_instance.h" | 15 #include "ppapi/c/pp_instance.h" |
| 16 #include "ppapi/c/pp_macros.h" | 16 #include "ppapi/c/pp_macros.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 /** | 53 /** |
| 54 * Requests that the file be truncated to length 0 if it exists and is a | 54 * Requests that the file be truncated to length 0 if it exists and is a |
| 55 * regular file. <code>PP_FILEOPENFLAG_WRITE</code> must also be specified. | 55 * regular file. <code>PP_FILEOPENFLAG_WRITE</code> must also be specified. |
| 56 */ | 56 */ |
| 57 PP_FILEOPENFLAG_TRUNCATE = 1 << 3, | 57 PP_FILEOPENFLAG_TRUNCATE = 1 << 3, |
| 58 /** | 58 /** |
| 59 * Requests that the file is created when this flag is combined with | 59 * Requests that the file is created when this flag is combined with |
| 60 * <code>PP_FILEOPENFLAG_CREATE</code>. If this flag is specified, and the | 60 * <code>PP_FILEOPENFLAG_CREATE</code>. If this flag is specified, and the |
| 61 * file already exists, then the FileIO::Open() call will fail. | 61 * file already exists, then the FileIO::Open() call will fail. |
| 62 */ | 62 */ |
| 63 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4 | 63 PP_FILEOPENFLAG_EXCLUSIVE = 1 << 4, |
| 64 /** |
| 65 * Requests write access to a file, but writes will always occur at the end of |
| 66 * the file. Mututally exclusive with <code>PP_FILEOPENFLAG_WRITE</code>. |
| 67 */ |
| 68 PP_FILEOPENFLAG_APPEND = 1 << 5 |
| 64 } PP_FileOpenFlags; | 69 } PP_FileOpenFlags; |
| 65 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); | 70 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileOpenFlags, 4); |
| 66 /** | 71 /** |
| 67 * @} | 72 * @} |
| 68 */ | 73 */ |
| 69 | 74 |
| 70 /** | 75 /** |
| 71 * @addtogroup Interfaces | 76 * @addtogroup Interfaces |
| 72 * @{ | 77 * @{ |
| 73 */ | 78 */ |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 struct PP_CompletionCallback callback); | 320 struct PP_CompletionCallback callback); |
| 316 int32_t (*Flush)(PP_Resource file_io, struct PP_CompletionCallback callback); | 321 int32_t (*Flush)(PP_Resource file_io, struct PP_CompletionCallback callback); |
| 317 void (*Close)(PP_Resource file_io); | 322 void (*Close)(PP_Resource file_io); |
| 318 }; | 323 }; |
| 319 /** | 324 /** |
| 320 * @} | 325 * @} |
| 321 */ | 326 */ |
| 322 | 327 |
| 323 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ | 328 #endif /* PPAPI_C_PPB_FILE_IO_H_ */ |
| 324 | 329 |
| OLD | NEW |