Skip to content

Commit

Permalink
Rename NetworkEventCb to DtuNetworkEventCb to prevent further upgrade…
Browse files Browse the repository at this point in the history
… issues
  • Loading branch information
tbnobody committed Sep 27, 2024
1 parent d770566 commit b433830
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/NetworkSettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ enum class network_event {
NETWORK_EVENT_MAX
};

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

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

NetworkEventCbList()
Expand All @@ -54,7 +54,7 @@ class NetworkSettingsClass {
bool isConnected() const;
network_mode NetworkMode() const;

bool onEvent(NetworkEventCb cbEvent, const network_event event = network_event::NETWORK_EVENT_MAX);
bool onEvent(DtuNetworkEventCb cbEvent, const network_event event = network_event::NETWORK_EVENT_MAX);
void raiseEvent(const network_event event);

private:
Expand Down
2 changes: 1 addition & 1 deletion src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ void NetworkSettingsClass::NetworkEvent(const WiFiEvent_t event, WiFiEventInfo_t
}
}

bool NetworkSettingsClass::onEvent(NetworkEventCb cbEvent, const network_event event)
bool NetworkSettingsClass::onEvent(DtuNetworkEventCb cbEvent, const network_event event)
{
if (!cbEvent) {
return pdFALSE;
Expand Down

0 comments on commit b433830

Please sign in to comment.