mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Renamed vars
This commit is contained in:
parent
c6e8efa22e
commit
59d547d9c4
@ -167,16 +167,16 @@ namespace NetworkInterfaceManager
|
|||||||
|
|
||||||
void NetworkInterface::DrvSend(unsigned int DriverID, unsigned char *Data, unsigned short Size)
|
void NetworkInterface::DrvSend(unsigned int DriverID, unsigned char *Data, unsigned short Size)
|
||||||
{
|
{
|
||||||
foreach (auto var in this->Interfaces)
|
foreach (auto inf in this->Interfaces)
|
||||||
if (var->DriverID == DriverID)
|
if (inf->DriverID == DriverID)
|
||||||
NIManager->Send(var, Data, Size);
|
NIManager->Send(inf, Data, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkInterface::DrvReceive(unsigned int DriverID, unsigned char *Data, unsigned short Size)
|
void NetworkInterface::DrvReceive(unsigned int DriverID, unsigned char *Data, unsigned short Size)
|
||||||
{
|
{
|
||||||
foreach (auto var in this->Interfaces)
|
foreach (auto inf in this->Interfaces)
|
||||||
if (var->DriverID == DriverID)
|
if (inf->DriverID == DriverID)
|
||||||
NIManager->Receive(var, Data, Size);
|
NIManager->Receive(inf, Data, Size);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetworkInterface::Send(DeviceInterface *Interface, uint8_t *Data, uint64_t Length)
|
void NetworkInterface::Send(DeviceInterface *Interface, uint8_t *Data, uint64_t Length)
|
||||||
@ -199,8 +199,8 @@ namespace NetworkInterfaceManager
|
|||||||
|
|
||||||
void NetworkInterface::Receive(DeviceInterface *Interface, uint8_t *Data, uint64_t Length)
|
void NetworkInterface::Receive(DeviceInterface *Interface, uint8_t *Data, uint64_t Length)
|
||||||
{
|
{
|
||||||
foreach (auto var in RegisteredEvents)
|
foreach (auto re in RegisteredEvents)
|
||||||
var->OnInterfaceReceived(Interface, Data, Length);
|
re->OnInterfaceReceived(Interface, Data, Length);
|
||||||
}
|
}
|
||||||
|
|
||||||
Events::Events(DeviceInterface *Interface) { RegisteredEvents.push_back(this); }
|
Events::Events(DeviceInterface *Interface) { RegisteredEvents.push_back(this); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user