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