hide c++ stuff in C api

pull/147/head
Jeff Becker 6 years ago
parent e875840399
commit 312ccdf478
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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);

Loading…
Cancel
Save