libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
WutDeviceState Struct Reference

State tracker for a single storage device slot. More...

#include <WutFileSystemDriver.h>

Public Attributes

int id
 Device enum value (DEVICE_SD, DEVICE_USB, ...)
 
char name [16]
 human-readable base name, eg.
 
char volumeLabel [16]
 volume label, best-effort - empty if none could be read
 
char prefix [32]
 devoptab mount prefix, eg.
 
char stablePrefix [32]
 same string as prefix, but set once in init() and never cleared on unmount - this device's identity for path->device resolution (FindDevice()), independent of current mount state
 
bool isPresent
 found on the last poll
 
bool isMounted
 A filesystem is currently mounted on this slot.
 
bool unmountRequired
 The slot was removed or invalidated and must be unmounted before the next mount attempt.
 
bool labelFetched
 volume label already looked up since the last mount/removal - see getVolumeLabel()
 

Detailed Description

State tracker for a single storage device slot.

Definition at line 27 of file WutFileSystemDriver.h.

Member Data Documentation

◆ id

int WutDeviceState::id

Device enum value (DEVICE_SD, DEVICE_USB, ...)

Definition at line 29 of file WutFileSystemDriver.h.

◆ isMounted

bool WutDeviceState::isMounted

A filesystem is currently mounted on this slot.

Definition at line 35 of file WutFileSystemDriver.h.

◆ isPresent

bool WutDeviceState::isPresent

found on the last poll

Definition at line 34 of file WutFileSystemDriver.h.

◆ labelFetched

bool WutDeviceState::labelFetched

volume label already looked up since the last mount/removal - see getVolumeLabel()

Definition at line 37 of file WutFileSystemDriver.h.

◆ name

char WutDeviceState::name[16]

human-readable base name, eg.

"SD Card"

Definition at line 30 of file WutFileSystemDriver.h.

◆ prefix

char WutDeviceState::prefix[32]

devoptab mount prefix, eg.

"usb1:/", or the runtime FSA path for SD - "" whenever isMounted is false

Definition at line 32 of file WutFileSystemDriver.h.

◆ stablePrefix

char WutDeviceState::stablePrefix[32]

same string as prefix, but set once in init() and never cleared on unmount - this device's identity for path->device resolution (FindDevice()), independent of current mount state

Definition at line 33 of file WutFileSystemDriver.h.

◆ unmountRequired

bool WutDeviceState::unmountRequired

The slot was removed or invalidated and must be unmounted before the next mount attempt.

Definition at line 36 of file WutFileSystemDriver.h.

◆ volumeLabel

char WutDeviceState::volumeLabel[16]

volume label, best-effort - empty if none could be read

Definition at line 31 of file WutFileSystemDriver.h.


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