15#include "../SmbDriver.h"
32 const char *
getMountPath()
const override {
return ctx ?
"smb:/" :
""; }
48 static smb2_context * ctx;
50 bool devoptabAdded =
false;
Wraps libsmb2 behind a "smb:/" devoptab.
void shutdown() override
Disconnects if connected and releases whatever init() set up.
bool ensureNetworkUp() override
Ensures the network is up via the platform's network helper (WiiNetwork or GameCubeNetwork).
SmbConnectResult connect(const SmbShareInfo &info) override
Attempts to connect and mount in one call.
const char * connectResultMessage(SmbConnectResult result) const override
Short, user-displayable reason for a non-Success SmbConnectResult.
void disconnect() override
Unmounts and drops the connection.
const char * getMountPath() const override
devoptab-style mount path (eg.
bool isConnected() const override
static smb2_context * getContext()
The active context, used by the free-function devoptab callbacks in OgcSmbDriver.cpp.
void init() override
One-time setup.
bool isNetworkUp() const override
True if the network is already up, i.e.
const char * getLastError() const override
Raw, implementation-specific detail behind the last failure.
SmbConnectResult
Result of a single connect() attempt.
Credentials/target for a single SMB share.