blob: 9a1f9b13a6c4f9c3dbdcfb73301679651176bc39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
/* Copyright (c) 2010 The Chromium Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_
#define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_
#include "ppapi/c/dev/pp_file_info_dev.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_time.h"
struct PP_CompletionCallback;
#define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.2"
struct PPB_FileSystem_Dev {
// Creates a weak pointer to the filesystem of the given type.
PP_Resource (*Create)(PP_Instance instance, PP_FileSystemType_Dev type);
// Opens the file system. A file system must be opened before running any
// other operation on it.
int32_t (*Open)(PP_Resource file_system,
int64_t expected_size,
struct PP_CompletionCallback callback);
};
#endif /* PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ */
|