mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-02 03:40:12 +00:00
33 lines
706 B
C
33 lines
706 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
|