#include <removable_storage_dev.h>
Definition at line 33 of file removable_storage_dev.h.
pp::RemovableStorage_Dev::RemovableStorage_Dev |
( |
const InstanceHandle & |
instance | ) |
|
|
explicit |
Creates a removable storage resource.
- Parameters
-
- Returns
- A
Resource
corresponding to a removable storage resource if successful, 0 if failed.
Enumerates removable storage devices.
- Parameters
-
- Returns
- An error code from
pp_errors.h
.
static bool pp::RemovableStorage_Dev::IsAvailable |
( |
| ) |
|
|
static |
Determines if the given resource is available.
- Returns
- A
bool
containing true
if the given resource is available, otherwise false
.
bool pp::RemovableStorage_Dev::IsRemovableStorage |
( |
| ) |
|
Determines if the given resource is a removable storage resource.
- Returns
- A
bool
containing true
if the given resource is a removable storage resource, otherwise false
.
int32_t pp::RemovableStorage_Dev::MonitorDeviceChange |
( |
PP_MonitorDeviceChangeCallback |
callback, |
|
|
void * |
user_data |
|
) |
| |
Requests device change notifications.
- Parameters
-
[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 it will be 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 . |
- Returns
- An error code from
pp_errors.h
.
Opens removable file system.
- Parameters
-
[in] | file_system | A FileSystem corresponding to a file system of PP_FILESYSTEMTYPE_REMOVABLESTORAGE type. |
[in] | device_ref | A DeviceRef_Dev corresponding to a device reference. |
[in] | callback | A CompletionCallback to run on completion. |
- Returns
- An error code from
pp_errors.h
.
The documentation for this class was generated from the following file: