Add NetworkInterface::attach() back, as it might be referred from binaries

pull/9424/head
Seppo Takalo 2019-02-01 16:02:45 +02:00
parent 06aea98f99
commit 2744200cb7
2 changed files with 7 additions and 1 deletions

View File

@ -78,6 +78,12 @@ nsapi_error_t NetworkInterface::add_dns_server(const SocketAddress &address)
return get_stack()->add_dns_server(address);
}
void NetworkInterface::attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb)
{
// Dummy, that needs to be overwritten when inherited, but cannot be removed
// because suplied previously and can be referred from binaries.
}
typedef struct iface_eventlist_entry {
NetworkInterface *iface;
mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb;

View File

@ -250,7 +250,7 @@ public:
*
* @param status_cb The callback for status changes.
*/
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb) = 0;
virtual void attach(mbed::Callback<void(nsapi_event_t, intptr_t)> status_cb);
/** Add event listener for interface.
*