libgui 2.01
libgui is a GUI library for the GameCube, Wii, and Wii U
 
Loading...
Searching...
No Matches
dvm_wut.h
1/****************************************************************************
2 * Platform Abstraction Layer (WUT driver)
3 * Daryl Borth 2026
4 * dvm_wut.h
5 *
6 * Wii U mounting on top of libdvm - USB1/2/3 (via Mocha_usbN_disc_interface)
7 * Everything here requires Mocha (Mocha_InitLibrary() having already
8 * succeeded) - without it there's no disc access at all.
9 ***************************************************************************/
10#pragma once
11
12#include <stdbool.h>
13#include <stddef.h>
14#include <mocha/disc_interface.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#define DVM_WUT_MAX_VOLUMES 3 // 3 USB slots
21
24typedef struct
25{
26 char name[8];
27 bool isMounted;
28 void* disc;
30
33bool dvmWutInit(void);
34
45bool dvmWutMountVolume(const char * name, DISC_INTERFACE * iface, unsigned cachePages, unsigned sectorsPerPage);
46
52void dvmWutUnmountVolume(const char * name);
53
62bool dvmWutVolumeStillPresent(const char * name);
63
65bool dvmWutGetVolumeLabel(const char * name, char * labelOut, size_t labelOutSize);
66
67#ifdef __cplusplus
68}
69#endif
One storage slot's dvm mount state.
Definition dvm_wut.h:25
char name[8]
devoptab basename this volume was mounted as, eg.
Definition dvm_wut.h:26
void * disc
opaque DvmDisc* - valid only while isMounted, NULL otherwise
Definition dvm_wut.h:28
bool isMounted
true while the volume is mounted through libdvm
Definition dvm_wut.h:27