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.
6 /* From private/ppb_file_io_private.idl modified Wed Mar 27 14:43:25 2013. */
8 #ifndef PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_
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"
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
24 #include "ppapi/c/private/pp_file_handle.h"
27 * @addtogroup Interfaces
30 /* PPB_FileIO_Private interface */
31 struct PPB_FileIO_Private_0_1
{
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.
38 int32_t (*RequestOSFileHandle
)(PP_Resource file_io
,
39 PP_FileHandle
* handle
,
40 struct PP_CompletionCallback callback
);
43 typedef struct PPB_FileIO_Private_0_1 PPB_FileIO_Private
;
48 #endif /* PPAPI_C_PRIVATE_PPB_FILE_IO_PRIVATE_H_ */