| OLD | NEW |
| (Empty) | |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From private/ppb_file_io_private.idl modified Tue Mar 26 20:47:50 2013. */ |
| 7 |
| 8 #ifndef PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_ |
| 9 #define PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_ |
| 10 |
| 11 #include "ppapi/c/pp_completion_callback.h" |
| 12 #include "ppapi/c/pp_macros.h" |
| 13 #include "ppapi/c/pp_resource.h" |
| 14 #include "ppapi/c/pp_stdint.h" |
| 15 |
| 16 #define PPB_FILEIO_PRIVATE_INTERFACE_0_1 "PPB_FileIO_Private;0.1" |
| 17 #define PPB_FILEIO_PRIVATE_INTERFACE PPB_FILEIO_PRIVATE_INTERFACE_0_1 |
| 18 |
| 19 /** |
| 20 * @file |
| 21 */ |
| 22 |
| 23 |
| 24 #include "ppapi/c/private/pp_file_handle.h" |
| 25 |
| 26 /** |
| 27 * @addtogroup Interfaces |
| 28 * @{ |
| 29 */ |
| 30 /* PPB_FileIO_Private interface */ |
| 31 struct PPB_FileIO_Private_0_1 { |
| 32 /** |
| 33 * Returns a file handle corresponding to the given FileIO |
| 34 * object. The FileIO object must have been opened with a |
| 35 * successful call to FileIO::Open. The caller gets the ownership |
| 36 * of the returned file handle and must close it. |
| 37 */ |
| 38 int32_t (*GetOSFileHandle)(PP_Resource file_io, |
| 39 PP_FileHandle* handle, |
| 40 struct PP_CompletionCallback callback); |
| 41 }; |
| 42 |
| 43 typedef struct PPB_FileIO_Private_0_1 PPB_FileIO_Private; |
| 44 /** |
| 45 * @} |
| 46 */ |
| 47 |
| 48 #endif /* PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_ */ |
| 49 |
| OLD | NEW |