libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
Storage and network shares

FileSystemDriver device enumeration/mount/hot-plug and the SMB network-share driver. More...

Classes

struct  StorageDevice
 Description of one storage device: id, display name, mount prefix, volume label and flags such as removable or always-listed. More...
 
class  FileSystemDriver
 Storage device enumeration/mount/poll backend for the SD/USB/DVD file browser. More...
 
struct  SmbShareInfo
 Credentials/target for a single SMB share. More...
 
class  SmbDriver
 Network-share driver. More...
 

Enumerations

enum  Device {
  DEVICE_AUTO = 0 , DEVICE_SD , DEVICE_USB , DEVICE_USB2 ,
  DEVICE_USB3 , DEVICE_DVD , DEVICE_SMB , DEVICE_SD_SLOTA ,
  DEVICE_SD_SLOTB , DEVICE_SD_PORT2 , DEVICE_SD_GCLOADER , DEVICE_LENGTH
}
 Storage device kind, shared by every platform's FileSystemDriver All platforms are limited to exactly one mount per device type. More...
 
enum class  MountResult { Success , MountResult::DeviceNotFound , MountResult::MountFailed }
 Result of a single mount attempt. More...
 
enum class  SmbConnectResult { Success , SmbConnectResult::InvalidSettings , SmbConnectResult::NetworkUnavailable , SmbConnectResult::ConnectFailed }
 Result of a single connect() attempt. More...
 

Detailed Description

FileSystemDriver device enumeration/mount/hot-plug and the SMB network-share driver.

Enumeration Type Documentation

◆ Device

enum Device

Storage device kind, shared by every platform's FileSystemDriver All platforms are limited to exactly one mount per device type.

Enumerator
DEVICE_SD_SLOTA 

GameCube memory card slot A.

DEVICE_SD_SLOTB 

GameCube memory card slot B.

DEVICE_SD_PORT2 

GameCube SD Gecko in memory card slot B.

Definition at line 18 of file FileSystemDriver.h.

◆ MountResult

enum class MountResult
strong

Result of a single mount attempt.

Deliberately has no retry/backoff behavior baked in

Enumerator
DeviceNotFound 

not physically present / not inserted

MountFailed 

present, but couldn't be mounted (eg.

unrecognized format)

Definition at line 49 of file FileSystemDriver.h.

◆ SmbConnectResult

enum class SmbConnectResult
strong

Result of a single connect() attempt.

Deliberately mirrors MountResult's shape (see FileSystemDriver.h) but SMB gets its own enum since the failure modes are different (network down vs. auth/share rejected) and callers may want to tell those apart in the UI.

Enumerator
InvalidSettings 

host or share is empty - nothing to try

NetworkUnavailable 

no usable network connection at all

ConnectFailed 

network's up but the server/share/credentials didn't work

Definition at line 32 of file SmbDriver.h.