From 312ccdf47848127263cb87b30d914c1347acfeb3 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Thu, 13 Dec 2018 16:37:30 -0500 Subject: [PATCH] hide c++ stuff in C api --- include/llarp.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/include/llarp.h b/include/llarp.h index 1273e91ba..cee31098f 100644 --- a/include/llarp.h +++ b/include/llarp.h @@ -3,11 +3,12 @@ #include #include -#include + #include -#include #ifdef __cplusplus +#include +#include #include // for handlers #include // for service::address #include @@ -65,10 +66,6 @@ extern "C" llarp_main_putDatabase(struct llarp_main *ptr, struct llarp::RouterContact &rc); - /// get RC from nodeDB - llarp::RouterContact * - llarp_main_getDatabase(struct llarp_main *ptr, byte_t *pk); - // fwd declr struct check_online_request; @@ -116,6 +113,10 @@ extern "C" #ifdef __cplusplus + /// get RC from nodeDB + llarp::RouterContact * + llarp_main_getDatabase(struct llarp_main *ptr, byte_t *pk); + llarp::handlers::TunEndpoint * main_router_getFirstTunEndpoint(struct llarp_main *ptr);