11#include "../SmbDriver.h"
27 const char *
getMountPath()
const override {
return ctx ?
"smb:/" :
""; }
43 static smb2_context * ctx;
45 bool devoptabAdded =
false;
46 bool acInitialized =
false;
47 bool acConnected =
false;
Wii U SmbDriver built on libsmb2, registering its own smb:/ newlib devoptab.
void disconnect() override
Unmounts and drops the connection.
SmbConnectResult connect(const SmbShareInfo &info) override
Attempts to connect and mount in one call.
const char * getMountPath() const override
devoptab-style mount path (eg.
const char * connectResultMessage(SmbConnectResult result) const override
Short, user-displayable reason for a non-Success SmbConnectResult.
void init() override
One-time setup.
const char * getLastError() const override
Raw, implementation-specific detail behind the last failure.
bool isNetworkUp() const override
True if the network is already up, i.e.
bool ensureNetworkUp() override
Brings the Wii U network connection up if it isn't already, via nn::ac (ACConnect()).
void shutdown() override
Disconnects if connected and releases whatever init() set up.
bool isConnected() const override
static smb2_context * getContext()
The active context, used by the free-function devoptab callbacks in WutSmbDriver.cpp.
SmbConnectResult
Result of a single connect() attempt.
Credentials/target for a single SMB share.