2018-05-16 15:49:16 +00:00
|
|
|
#include <llarp/link.h>
|
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
bool
|
|
|
|
llarp_link_initialized(struct llarp_link* link)
|
2018-05-16 15:49:16 +00:00
|
|
|
{
|
2018-05-22 15:54:19 +00:00
|
|
|
return link && link->impl && link->name && link->get_our_address
|
|
|
|
&& link->configure && link->start_link && link->stop_link
|
|
|
|
&& link->iter_sessions && link->try_establish && link->mark_session_active
|
|
|
|
&& link->free_impl;
|
2018-05-16 16:41:20 +00:00
|
|
|
}
|
2018-05-22 15:54:19 +00:00
|
|
|
|
|
|
|
bool
|
|
|
|
llarp_link_session_initialized(struct llarp_link_session* s)
|
2018-05-16 16:41:20 +00:00
|
|
|
{
|
2018-05-21 14:28:15 +00:00
|
|
|
return s && s->impl && s->sendto && s->timeout && s->close;
|
2018-05-16 15:49:16 +00:00
|
|
|
}
|