lokinet/llarp/link.c

18 lines
558 B
C
Raw Normal View History

2018-05-16 15:49:16 +00:00
#include <llarp/link.h>
bool
llarp_link_initialized(struct llarp_link* link)
2018-05-16 15:49:16 +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->sendto
&& link->has_session_to && link->mark_session_active && link->free_impl;
2018-05-16 16:41:20 +00:00
}
bool
llarp_link_session_initialized(struct llarp_link_session* s)
2018-05-16 16:41:20 +00:00
{
return s && s->impl && s->sendto && s->timeout && s->close
&& s->get_remote_router && s->established && s->get_parent;
2018-05-16 15:49:16 +00:00
}