mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
527 B
C
25 lines
527 B
C
#ifndef SARP_ROUTER_H_
|
|
#define SARP_ROUTER_H_
|
|
#include <sarp/config.h>
|
|
#include <sarp/ev.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct sarp_router;
|
|
|
|
void sarp_init_router(struct sarp_router ** router);
|
|
void sarp_free_router(struct sarp_router ** router);
|
|
|
|
int sarp_configure_router(struct sarp_router * router, struct sarp_config * conf);
|
|
|
|
void sarp_run_router(struct sarp_router * router, struct sarp_ev_loop * loop);
|
|
void sarp_stop_router(struct sarp_router * router);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|