2018-01-27 01:18:10 +00:00
|
|
|
#ifndef LLARP_OBMD_H_
|
|
|
|
#define LLARP_OBMD_H_
|
|
|
|
#include <llarp/buffer.h>
|
|
|
|
#include <llarp/crypto.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-04-04 16:10:27 +00:00
|
|
|
/* forward decl */
|
2018-01-29 14:27:24 +00:00
|
|
|
struct llarp_link;
|
|
|
|
|
2018-04-04 13:54:37 +00:00
|
|
|
/**
|
|
|
|
* link layer outbound message sending muxer
|
|
|
|
*/
|
2018-01-29 14:27:24 +00:00
|
|
|
struct llarp_link_dispatcher;
|
|
|
|
|
|
|
|
struct llarp_link_dispatcher *llarp_init_link_dispatcher();
|
|
|
|
void llarp_free_link_dispatcher(struct llarp_link_dispatcher **dispatcher);
|
|
|
|
|
|
|
|
void llarp_link_sendto(struct llarp_link_dispatcher *dispatcher,
|
|
|
|
llarp_pubkey_t pubkey, llarp_buffer_t msg);
|
|
|
|
|
|
|
|
void llarp_link_register(struct llarp_link_dispatcher *dispatcher,
|
|
|
|
struct llarp_link *link);
|
|
|
|
|
2018-01-27 01:18:10 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|