8 #ifndef PPAPI_C_PPB_FILE_REF_H_
9 #define PPAPI_C_PPB_FILE_REF_H_
11 #include "ppapi/c/pp_array_output.h"
12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_file_info.h"
15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_time.h"
19 #include "ppapi/c/pp_var.h"
21 #define PPB_FILEREF_INTERFACE_1_0 "PPB_FileRef;1.0"
22 #define PPB_FILEREF_INTERFACE_1_1 "PPB_FileRef;1.1"
23 #define PPB_FILEREF_INTERFACE PPB_FILEREF_INTERFACE_1_1
struct PP_Var(* GetPath)(PP_Resource file_ref)
int32_t(* MakeDirectory)(PP_Resource directory_ref, PP_Bool make_ancestors, struct PP_CompletionCallback callback)
int32_t(* Delete)(PP_Resource file_ref, struct PP_CompletionCallback callback)
int32_t(* Rename)(PP_Resource file_ref, PP_Resource new_file_ref, struct PP_CompletionCallback callback)
int32_t(* Query)(PP_Resource file_ref, struct PP_FileInfo *info, struct PP_CompletionCallback callback)
int32_t(* ReadDirectoryEntries)(PP_Resource file_ref, struct PP_ArrayOutput output, struct PP_CompletionCallback callback)
struct PP_Var(* GetName)(PP_Resource file_ref)
int32_t(* Delete)(PP_Resource file_ref, struct PP_CompletionCallback callback)
PP_Bool(* IsFileRef)(PP_Resource resource)
int32_t(* Rename)(PP_Resource file_ref, PP_Resource new_file_ref, struct PP_CompletionCallback callback)
PP_Resource(* GetParent)(PP_Resource file_ref)
PP_Resource(* Create)(PP_Resource file_system, const char *path)
int32_t(* Touch)(PP_Resource file_ref, PP_Time last_access_time, PP_Time last_modified_time, struct PP_CompletionCallback callback)
PP_Bool(* IsFileRef)(PP_Resource resource)
int32_t(* Touch)(PP_Resource file_ref, PP_Time last_access_time, PP_Time last_modified_time, struct PP_CompletionCallback callback)
PP_FileSystemType(* GetFileSystemType)(PP_Resource file_ref)
int32_t(* MakeDirectory)(PP_Resource directory_ref, PP_Bool make_ancestors, struct PP_CompletionCallback callback)
PP_Resource(* Create)(PP_Resource file_system, const char *path)
PP_Resource(* GetParent)(PP_Resource file_ref)
struct PP_Var(* GetPath)(PP_Resource file_ref)
struct PP_Var(* GetName)(PP_Resource file_ref)
PP_FileSystemType(* GetFileSystemType)(PP_Resource file_ref)