Move handlers* to llarp/

pull/137/head
Michael 6 years ago
parent 0a08e53bde
commit 7a52638add
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -7,8 +7,8 @@
#include <llarp/version.hpp> #include <llarp/version.hpp>
#ifdef __cplusplus #ifdef __cplusplus
#include <handlers/tun.hpp> // for handlers
#include <llarp/service/address.hpp> // for service::address #include <llarp/service/address.hpp> // for service::address
#include <llarp/handlers/tun.hpp> // for handlers
#include <llarp/service/endpoint.hpp> #include <llarp/service/endpoint.hpp>
extern "C" extern "C"

@ -1,10 +1,11 @@
#ifndef LLARP_SERVICE_CONTEXT_HPP #ifndef LLARP_SERVICE_CONTEXT_HPP
#define LLARP_SERVICE_CONTEXT_HPP #define LLARP_SERVICE_CONTEXT_HPP
#include <handlers/tun.hpp>
#include <llarp/net.hpp> #include <llarp/net.hpp>
#include <llarp/service/config.hpp> #include <llarp/service/config.hpp>
#include <llarp/service/endpoint.hpp> #include <llarp/service/endpoint.hpp>
#include <unordered_map> #include <unordered_map>
#include <llarp/handlers/tun.hpp>
namespace llarp namespace llarp
{ {

@ -1,5 +1,5 @@
#include <handlers/tun.hpp>
#include <llarp/dns_dotlokilookup.hpp> #include <llarp/dns_dotlokilookup.hpp>
#include <llarp/handlers/tun.hpp>
#include <llarp/service/context.hpp> #include <llarp/service/context.hpp>
#include <llarp/logic.hpp> #include <llarp/logic.hpp>

@ -1,9 +1,10 @@
#ifndef LLARP_EXIT_CONTEXT_HPP #ifndef LLARP_EXIT_CONTEXT_HPP
#define LLARP_EXIT_CONTEXT_HPP #define LLARP_EXIT_CONTEXT_HPP
#include <exit/policy.hpp> #include <exit/policy.hpp>
#include <handlers/exit.hpp>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <llarp/handlers/exit.hpp>
namespace llarp namespace llarp
{ {

@ -1,6 +1,5 @@
#include <exit/endpoint.hpp> #include <exit/endpoint.hpp>
#include <llarp/handlers/exit.hpp> #include <handlers/exit.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,7 +1,8 @@
#include <llarp/handlers/exit.hpp> #include <handlers/exit.hpp>
#include "../str.hpp"
#include "../router.hpp"
#include <llarp/net.hpp> #include <llarp/net.hpp>
#include <router.hpp>
#include <str.hpp>
#include <cassert> #include <cassert>
namespace llarp namespace llarp

@ -2,7 +2,7 @@
#define LLARP_HANDLERS_EXIT_HPP #define LLARP_HANDLERS_EXIT_HPP
#include <exit/endpoint.hpp> #include <exit/endpoint.hpp>
#include <llarp/handlers/tun.hpp> #include <handlers/tun.hpp>
#include <unordered_map> #include <unordered_map>

@ -1,14 +1,14 @@
#include <algorithm> #include <algorithm>
// harmless on other platforms // harmless on other platforms
#define __USE_MINGW_ANSI_STDIO 1 #define __USE_MINGW_ANSI_STDIO 1
#include <llarp/handlers/tun.hpp> #include <handlers/tun.hpp>
#include <sys/types.h> #include <sys/types.h>
#ifndef _WIN32 #ifndef _WIN32
#include <sys/socket.h> #include <sys/socket.h>
#include <netdb.h> #include <netdb.h>
#endif #endif
#include "ev.hpp"
#include <ev.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,14 +1,16 @@
#ifndef LLARP_ROUTER_HPP #ifndef LLARP_ROUTER_HPP
#define LLARP_ROUTER_HPP #define LLARP_ROUTER_HPP
#include <llarp/buffer.h> #include <crypto.hpp>
#include <llarp/config.h>
#include <dht.h> #include <dht.h>
#include <dht.hpp> #include <dht.hpp>
#include <exit.hpp> #include <exit.hpp>
#include <fs.hpp>
#include <handlers/tun.hpp>
#include <llarp/buffer.h>
#include <llarp/config.h>
#include <llarp/establish_job.hpp> #include <llarp/establish_job.hpp>
#include <llarp/ev.h> #include <llarp/ev.h>
#include <llarp/handlers/tun.hpp>
#include <llarp/link_layer.hpp> #include <llarp/link_layer.hpp>
#include <llarp/link_message.hpp> #include <llarp/link_message.hpp>
#include <llarp/logic.hpp> #include <llarp/logic.hpp>
@ -19,6 +21,8 @@
#include <llarp/routing/handler.hpp> #include <llarp/routing/handler.hpp>
#include <llarp/rpc.hpp> #include <llarp/rpc.hpp>
#include <llarp/service.hpp> #include <llarp/service.hpp>
#include <mem.hpp>
#include <str.hpp>
#include <threadpool.hpp> #include <threadpool.hpp>
#include <functional> #include <functional>
@ -27,11 +31,6 @@
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
#include <crypto.hpp>
#include <fs.hpp>
#include <mem.hpp>
#include <str.hpp>
bool bool
llarp_findOrCreateEncryption(llarp::Crypto *crypto, const char *fpath, llarp_findOrCreateEncryption(llarp::Crypto *crypto, const char *fpath,
llarp::SecretKey &encryption); llarp::SecretKey &encryption);

@ -1,5 +1,5 @@
#include <llarp/handlers/tun.hpp> #include <handlers/tun.hpp>
#include <llarp/handlers/null.hpp> #include <handlers/null.hpp>
#include <llarp/service/context.hpp> #include <llarp/service/context.hpp>
#include <llarp/service/endpoint.hpp> #include <llarp/service/endpoint.hpp>

Loading…
Cancel
Save