Skip to content

Commit 2744200

Browse files
author
Seppo Takalo
committed
Add NetworkInterface::attach() back, as it might be referred from binaries
1 parent 06aea98 commit 2744200

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

features/netsocket/NetworkInterface.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ nsapi_error_t NetworkInterface::add_dns_server(const SocketAddress &address)
7878
return get_stack()->add_dns_server(address);
7979
}
8080

81+
void NetworkInterface::attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb)
82+
{
83+
// Dummy, that needs to be overwritten when inherited, but cannot be removed
84+
// because suplied previously and can be referred from binaries.
85+
}
86+
8187
typedef struct iface_eventlist_entry {
8288
NetworkInterface *iface;
8389
mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb;

features/netsocket/NetworkInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class NetworkInterface: public DNS {
250250
*
251251
* @param status_cb The callback for status changes.
252252
*/
253-
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb) = 0;
253+
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb);
254254

255255
/** Add event listener for interface.
256256
*

0 commit comments

Comments
 (0)