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 #ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ |
6 #define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ |
7 | 7 |
8 #include "ppapi/c/dev/pp_file_info_dev.h" | 8 #include "ppapi/c/dev/pp_file_info_dev.h" |
9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/pp_stdint.h" | 12 #include "ppapi/c/pp_stdint.h" |
13 #include "ppapi/c/pp_time.h" | 13 #include "ppapi/c/pp_time.h" |
14 | 14 |
15 struct PP_CompletionCallback; | 15 struct PP_CompletionCallback; |
16 | 16 |
17 #define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.4" | 17 #define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.5" |
18 | 18 |
19 struct PPB_FileSystem_Dev { | 19 struct PPB_FileSystem_Dev { |
20 /** Creates a filesystem object of the given type. */ | 20 /** Creates a filesystem object of the given type. */ |
21 PP_Resource (*Create)(PP_Instance instance, PP_FileSystemType_Dev type); | 21 PP_Resource (*Create)(PP_Instance instance, PP_FileSystemType_Dev type); |
22 | 22 |
23 /** Returns PP_TRUE if the given resource is a FileSystem. */ | 23 /** Returns PP_TRUE if the given resource is a FileSystem. */ |
24 PP_Bool (*IsFileSystem)(PP_Resource resource); | 24 PP_Bool (*IsFileSystem)(PP_Resource resource); |
25 | 25 |
26 /** | 26 /** |
27 * Opens the file system. A file system must be opened before running any | 27 * Opens the file system. A file system must be opened before running any |
(...skipping 10 matching lines...) Expand all Loading... |
38 * Returns the type of the given file system. | 38 * Returns the type of the given file system. |
39 * | 39 * |
40 * Returns PP_FILESYSTEMTYPE_INVALID if the given resource is not a valid | 40 * Returns PP_FILESYSTEMTYPE_INVALID if the given resource is not a valid |
41 * filesystem. It is valid to call this function even before Open completes. | 41 * filesystem. It is valid to call this function even before Open completes. |
42 */ | 42 */ |
43 PP_FileSystemType_Dev (*GetType)(PP_Resource file_system); | 43 PP_FileSystemType_Dev (*GetType)(PP_Resource file_system); |
44 }; | 44 }; |
45 | 45 |
46 #endif /* PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ */ | 46 #endif /* PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ */ |
47 | 47 |
OLD | NEW |