Merge pull request #147 from majestrate/dev

hide c++ stuff in C api
This commit is contained in:
Jeff 2018-12-13 16:39:48 -05:00 committed by GitHub
commit 584431c5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,12 @@
#include <dht.h>
#include <ev.h>
#include <logic.hpp>
#include <mem.h>
#include <version.hpp>
#ifdef __cplusplus
#include <logic.hpp>
#include <version.hpp>
#include <handlers/tun.hpp> // for handlers
#include <service/address.hpp> // for service::address
#include <service/endpoint.hpp>
@ -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);