mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
37 lines
697 B
C
37 lines
697 B
C
#ifndef LLARP_OBMD_H_
|
|
#define LLARP_OBMD_H_
|
|
#include <llarp/buffer.h>
|
|
#include <llarp/crypto.h>
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* forward decl */
|
|
struct llarp_link;
|
|
|
|
/**
|
|
* link layer outbound message sending muxer
|
|
*/
|
|
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);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|