Skip to content

Commit

Permalink
Rename NetworkEventCbList_t to DtuNetworkEventCbList_t for further up…
Browse files Browse the repository at this point in the history
…grades
  • Loading branch information
tbnobody committed Oct 4, 2024
1 parent 10b97fa commit 7dac968
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions include/NetworkSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ enum class network_event {

typedef std::function<void(network_event event)> DtuNetworkEventCb;

typedef struct NetworkEventCbList {
typedef struct DtuNetworkEventCbList {
DtuNetworkEventCb cb;
network_event event;

NetworkEventCbList()
DtuNetworkEventCbList()
: cb(nullptr)
, event(network_event::NETWORK_UNKNOWN)
{
}
} NetworkEventCbList_t;
} DtuNetworkEventCbList_t;

class NetworkSettingsClass {
public:
Expand Down Expand Up @@ -82,7 +82,7 @@ class NetworkSettingsClass {
bool _dnsServerStatus = false;
network_mode _networkMode = network_mode::Undefined;
bool _ethConnected = false;
std::vector<NetworkEventCbList_t> _cbEventList;
std::vector<DtuNetworkEventCbList_t> _cbEventList;
bool _lastMdnsEnabled = false;
std::unique_ptr<W5500> _w5500;
};
Expand Down
2 changes: 1 addition & 1 deletion src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ bool NetworkSettingsClass::onEvent(DtuNetworkEventCb cbEvent, const network_even
if (!cbEvent) {
return pdFALSE;
}
NetworkEventCbList_t newEventHandler;
DtuNetworkEventCbList_t newEventHandler;
newEventHandler.cb = cbEvent;
newEventHandler.event = event;
_cbEventList.push_back(newEventHandler);
Expand Down

0 comments on commit 7dac968

Please sign in to comment.