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
|
2018-06-01 17:47:37 +00:00
|
|
|
&& link->iter_sessions && link->try_establish && link->sendto
|
|
|
|
&& link->has_session_to && 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-25 17:52:10 +00:00
|
|
|
return s && s->impl && s->sendto && s->timeout && s->close
|
2018-06-07 16:22:49 +00:00
|
|
|
&& s->get_remote_router && s->established && s->get_parent;
|
2018-05-16 15:49:16 +00:00
|
|
|
}
|