Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_RemovableStorage_Dev_0_1 Struct Reference

#include <ppb_removable_storage_dev.h>

Collaboration diagram for PPB_RemovableStorage_Dev_0_1:
Collaboration graph

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)
 

Detailed Description

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.

Member Data Documentation

PP_Resource(* PPB_RemovableStorage_Dev_0_1::Create)(PP_Instance instance)

Creates a removable storage resource.

Parameters
[in]instanceA PP_Instance identifying one instance of a module.
Returns
A 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.

Parameters
[in]removable_storageA PP_Resource corresponding to a removable storage resource.
[in]outputAn 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]callbackA PP_CompletionCallback to run on completion.
Returns
An error code from 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.

Parameters
[in]resourceA PP_Resource containing a resource.
Returns
A 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.

Parameters
[in]removable_storageA PP_Resource corresponding to a removable storage resource.
[in]callbackThe 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_dataAn opaque pointer that will be passed to callback.
Returns
An error code from 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.

Parameters
[in]removable_storageA PP_Resource corresponding to a removable storage resource.
[in]file_systemA PP_Resource corresponding to a file system of PP_FILESYSTEMTYPE_REMOVABLESTORAGE type.
[in]device_refA PP_Resource corresponding to a device reference.
[in]callbackA PP_CompletionCallback to run on completion.
Returns
An error code from pp_errors.h.

Definition at line 109 of file ppb_removable_storage_dev.h.


The documentation for this struct was generated from the following file: