From efdf1c3e7c144232ff4144660e4f9a8d8e69d5cc Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 21 May 2018 12:41:32 +0000 Subject: [PATCH] include fs, llarp_findOrCreateIdentity(), llarp_rc_write(), llarp_rc_clear(), llarp_rc_addr_list_iter(), llarp_rc_set_addrs(), llarp_rc_set_pubkey(), llarp_rc_sign() --- include/llarp/router.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/llarp/router.h b/include/llarp/router.h index e9333d75a..dd5e4418b 100644 --- a/include/llarp/router.h +++ b/include/llarp/router.h @@ -8,17 +8,30 @@ #include #ifdef __cplusplus +#include +namespace fs = std::experimental::filesystem; + extern "C" { #endif struct llarp_router; +bool llarp_findOrCreateIdentity(llarp_crypto *crypto, fs::path path, llarp_seckey_t *identity); +bool llarp_rc_write(struct llarp_rc *rc, fs::path our_rc_file); + struct llarp_router *llarp_init_router(struct llarp_alloc * mem, struct llarp_threadpool *worker, struct llarp_ev_loop * netloop, struct llarp_logic *logic); void llarp_free_router(struct llarp_router **router); bool llarp_configure_router(struct llarp_router *router, struct llarp_config *conf); +void llarp_rc_clear(struct llarp_rc *rc); +bool llarp_rc_addr_list_iter(struct llarp_ai_list_iter *iter, + struct llarp_ai *ai); +void llarp_rc_set_addrs(struct llarp_rc *rc, struct llarp_alloc *mem, struct llarp_ai_list *addr); +void llarp_rc_set_pubkey(struct llarp_rc *rc, uint8_t *pubkey); +void llarp_rc_sign(llarp_crypto *crypto, llarp_seckey_t *identity, + struct llarp_rc *rc); void llarp_run_router(struct llarp_router *router); void llarp_stop_router(struct llarp_router *router);