mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
EXI_DeviceEthernet: Make internal members and functions private
Previously, the entirety of CEXIETHERNET was exposed publically, which wasn't necessary. We simply make the thread function part of the internal interface, which gives it access to internal data members, while keeping everything else outside of it.
This commit is contained in:
parent
b547f72878
commit
fc78a4c993
@ -63,7 +63,7 @@ bool CEXIETHERNET::SendFrame(const u8* frame, u32 size)
|
||||
}
|
||||
}
|
||||
|
||||
static void ReadThreadHandler(CEXIETHERNET* self)
|
||||
void CEXIETHERNET::ReadThreadHandler(CEXIETHERNET* self)
|
||||
{
|
||||
while (!self->readThreadShutdown.IsSet())
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ bool CEXIETHERNET::SendFrame(const u8* frame, u32 size)
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
static void ReadThreadHandler(CEXIETHERNET* self)
|
||||
void CEXIETHERNET::ReadThreadHandler(CEXIETHERNET* self)
|
||||
{
|
||||
while (!self->readThreadShutdown.IsSet())
|
||||
{
|
||||
|
@ -263,7 +263,7 @@ bool CEXIETHERNET::IsActivated()
|
||||
return mHAdapter != INVALID_HANDLE_VALUE;
|
||||
}
|
||||
|
||||
static void ReadThreadHandler(CEXIETHERNET* self)
|
||||
void CEXIETHERNET::ReadThreadHandler(CEXIETHERNET* self)
|
||||
{
|
||||
while (!self->readThreadShutdown.IsSet())
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ public:
|
||||
void DMARead(u32 addr, u32 size) override;
|
||||
void DoState(PointerWrap& p) override;
|
||||
|
||||
// private:
|
||||
private:
|
||||
struct
|
||||
{
|
||||
enum
|
||||
@ -312,6 +312,7 @@ public:
|
||||
std::unique_ptr<u8[]> tx_fifo;
|
||||
|
||||
// TAP interface
|
||||
static void ReadThreadHandler(CEXIETHERNET* self);
|
||||
bool Activate();
|
||||
void Deactivate();
|
||||
bool IsActivated();
|
||||
|
Loading…
Reference in New Issue
Block a user