Pepper_47_C_interfaces
|
#include <ppb_removable_storage_dev.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance) |
PP_Bool(* | IsRemovableStorage )(PP_Resource resource) |
int32_t(* | EnumerateDevices )(PP_Resource removable_storage, struct PP_ArrayOutput output, struct PP_CompletionCallback callback) |
int32_t(* | MonitorDeviceChange )(PP_Resource removable_storage, PP_MonitorDeviceChangeCallback callback, void *user_data) |
int32_t(* | Open )(PP_Resource removable_storage, PP_Resource file_system, PP_Resource device_ref, struct PP_CompletionCallback callback) |
The PPB_RemovableStorage_Dev
interface enumarates the removable storage devices and notifies about their change.
Definition at line 37 of file ppb_removable_storage_dev.h.
PP_Resource(* PPB_RemovableStorage_Dev_0_1::Create)(PP_Instance instance) |
Creates a removable storage resource.
[in] | instance | A PP_Instance identifying one instance of a module. |
PP_Resource
corresponding to a removable storage resource if successful, 0 if failed. Definition at line 47 of file ppb_removable_storage_dev.h.
int32_t(* PPB_RemovableStorage_Dev_0_1::EnumerateDevices)(PP_Resource removable_storage, struct PP_ArrayOutput output, struct PP_CompletionCallback callback) |
Enumerates removable storage devices.
[in] | removable_storage | A PP_Resource corresponding to a removable storage resource. |
[in] | output | An output array which will receive PPB_RemovableStorageDeviceRef resources on success. Please note that the ref count of those resources has already been increased by 1 for the caller. |
[in] | callback | A PP_CompletionCallback to run on completion. |
pp_errors.h
. Definition at line 71 of file ppb_removable_storage_dev.h.
PP_Bool(* PPB_RemovableStorage_Dev_0_1::IsRemovableStorage)(PP_Resource resource) |
Determines if the given resource is a removable storage resource.
[in] | resource | A PP_Resource containing a resource. |
PP_Bool
containing PP_TRUE
if the given resource is a removable storage resource, otherwise PP_FALSE
. Definition at line 56 of file ppb_removable_storage_dev.h.
int32_t(* PPB_RemovableStorage_Dev_0_1::MonitorDeviceChange)(PP_Resource removable_storage, PP_MonitorDeviceChangeCallback callback, void *user_data) |
Requests device change notifications.
[in] | removable_storage | A PP_Resource corresponding to a removable storage resource. |
[in] | callback | The callback to receive notifications. If not NULL, it will be called once for the currently available devices, and then every time the list of available devices changes. All calls will happen on the same thread as the one on which MonitorDeviceChange() is called. It will receive notifications until removable_storage is destroyed or MonitorDeviceChange() is called to set a new callback for removable_storage . You can pass NULL to cancel sending notifications. |
[in,out] | user_data | An opaque pointer that will be passed to callback . |
pp_errors.h
. Definition at line 92 of file ppb_removable_storage_dev.h.
int32_t(* PPB_RemovableStorage_Dev_0_1::Open)(PP_Resource removable_storage, PP_Resource file_system, PP_Resource device_ref, struct PP_CompletionCallback callback) |
Opens removable file system.
[in] | removable_storage | A PP_Resource corresponding to a removable storage resource. |
[in] | file_system | A PP_Resource corresponding to a file system of PP_FILESYSTEMTYPE_REMOVABLESTORAGE type. |
[in] | device_ref | A PP_Resource corresponding to a device reference. |
[in] | callback | A PP_CompletionCallback to run on completion. |
pp_errors.h
. Definition at line 109 of file ppb_removable_storage_dev.h.