mirror of https://github.com/ARMmbed/mbed-os.git
Add NetworkInterface::attach() back, as it might be referred from binaries
parent
06aea98f99
commit
2744200cb7
|
@ -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;
|
||||
|
|
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue