Move service* to llarp/

pull/137/head
Michael 6 years ago
parent 5aa7f49470
commit e887b4e9c7
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

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

@ -1,9 +1,9 @@
#ifndef LIBLLARP_DNS_DOTLOKILOOKUP_HPP
#define LIBLLARP_DNS_DOTLOKILOOKUP_HPP
#include <llarp/service/address.hpp>
#include <llarp/dnsd.hpp>
#include <service/address.hpp>
#include "dnsd.hpp"
using map_address_hook_func =
std::function< bool(const byte_t *addr, bool isSNode, uint32_t ip) >;

@ -1,11 +1,12 @@
#ifndef LIBLLARP_DNSIPTRACKER_HPP
#define LIBLLARP_DNSIPTRACKER_HPP
#include <llarp/dns_dotlokilookup.hpp>
#include <llarp/net.hpp>
#include <service/address.hpp>
#include <map>
#include <vector>
#include <llarp/service/address.hpp>
#include "dns_dotlokilookup.hpp"
// either a request or response?
// neither, it's a result set row

@ -3,8 +3,8 @@
#include <crypto.hpp>
#include <llarp/encrypted.hpp>
#include <llarp/service/protocol.hpp>
#include <routing/message.hpp>
#include <service/protocol.hpp>
namespace llarp
{

@ -10,11 +10,11 @@
#include <llarp/pathbuilder.hpp>
#include <llarp/pathset.hpp>
#include <llarp/router_id.hpp>
#include <llarp/service/Intro.hpp>
#include <llarp/threading.hpp>
#include <llarp/time.hpp>
#include <routing/handler.hpp>
#include <routing/message.hpp>
#include <service/Intro.hpp>
#include <functional>
#include <list>

@ -4,10 +4,10 @@
#include <dht/messages/all.hpp>
#include <llarp/path_types.hpp>
#include <llarp/router_id.hpp>
#include <llarp/service/IntroSet.hpp>
#include <llarp/service/lookup.hpp>
#include <llarp/time.hpp>
#include <routing/message.hpp>
#include <service/IntroSet.hpp>
#include <service/lookup.hpp>
#include <functional>
#include <list>

@ -1,12 +0,0 @@
#ifndef LLARP_SERVICE_HPP
#define LLARP_SERVICE_HPP
#include <iostream>
#include <llarp/service/Identity.hpp>
#include <llarp/service/Intro.hpp>
#include <llarp/service/IntroSet.hpp>
#include <llarp/service/config.hpp>
#include <llarp/service/context.hpp>
#include <llarp/service/endpoint.hpp>
#include <llarp/service/types.hpp>
#endif

@ -1,6 +0,0 @@
#ifndef LLARP_SERVICE_TYPES_HPP
#define LLARP_SERVICE_TYPES_HPP
#include <llarp/service/address.hpp>
#include <llarp/service/vanity.hpp>
#endif

@ -464,7 +464,6 @@ extern "C"
return nullptr;
}
//#include <llarp/service/context.hpp>
bool
main_router_endpoint_iterator(
struct llarp_main *ptr, struct llarp::service::Context::endpoint_iter &i)

@ -7,8 +7,8 @@
#include <dht/message.hpp>
#include <dht/messages/findintro.hpp>
#include <dht/node.hpp>
#include <llarp/service/IntroSet.hpp>
#include <llarp/time.hpp>
#include <service/IntroSet.hpp>
#include <set>

@ -2,9 +2,9 @@
#define LLARP_DHT_MESSAGES_FIND_INTRO_HPP
#include <dht/message.hpp>
#include <llarp/service/address.hpp>
#include <llarp/service/tag.hpp>
#include <routing/message.hpp>
#include <service/address.hpp>
#include <service/tag.hpp>
namespace llarp
{

@ -1,7 +1,9 @@
#ifndef LLARP_DHT_MESSAGES_GOT_INTRO_HPP
#define LLARP_DHT_MESSAGES_GOT_INTRO_HPP
#include <dht/message.hpp>
#include <llarp/service/IntroSet.hpp>
#include <service/IntroSet.hpp>
#include <vector>
namespace llarp

@ -1,7 +1,8 @@
#ifndef LLARP_DHT_MESSAGES_PUB_INTRO_HPP
#define LLARP_DHT_MESSAGES_PUB_INTRO_HPP
#include <dht/message.hpp>
#include <llarp/service/IntroSet.hpp>
#include <service/IntroSet.hpp>
#include <vector>
namespace llarp

@ -2,8 +2,8 @@
#define LLARP_DHT_NODE_HPP
#include <dht/key.hpp>
#include <llarp/service/IntroSet.hpp>
#include <router_contact.hpp>
#include <service/IntroSet.hpp>
namespace llarp
{

@ -1,7 +1,7 @@
#include <handlers/tun.hpp>
#include <llarp/dns_dotlokilookup.hpp>
#include <llarp/service/context.hpp>
#include <llarp/logic.hpp>
#include <service/context.hpp>
std::string const default_chars =
"abcdefghijklmnaoqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";

@ -1,6 +1,7 @@
#ifndef LLARP_HANDLERS_NULL_HPP
#define LLARP_HANDLERS_NULL_HPP
#include <llarp/service/endpoint.hpp>
#include <service/endpoint.hpp>
namespace llarp
{

@ -1,12 +1,13 @@
#ifndef LLARP_HANDLERS_TUN_HPP
#define LLARP_HANDLERS_TUN_HPP
#include <llarp/ev.h>
#include <dns/server.hpp>
#include <llarp/codel.hpp>
#include <llarp/ev.h>
#include <llarp/ip.hpp>
#include <llarp/service/endpoint.hpp>
#include <llarp/threading.hpp>
#include <dns/server.hpp>
#include <llarp/net.hpp>
#include <llarp/threading.hpp>
#include <service/endpoint.hpp>
namespace llarp
{

@ -18,10 +18,10 @@
#include <llarp/path.hpp>
#include <llarp/profiling.hpp>
#include <llarp/rpc.hpp>
#include <llarp/service.hpp>
#include <mem.hpp>
#include <router_contact.hpp>
#include <routing/handler.hpp>
#include <service.hpp>
#include <str.hpp>
#include <threadpool.hpp>

@ -1,7 +1,7 @@
#include <llarp/service.hpp>
#include "buffer.hpp"
#include "fs.hpp"
#include "ini.hpp"
#include <service.hpp>
#include <buffer.hpp>
#include <fs.hpp>
#include <ini.hpp>
namespace llarp
{

@ -0,0 +1,14 @@
#ifndef LLARP_SERVICE_HPP
#define LLARP_SERVICE_HPP
#include <service/Identity.hpp>
#include <service/Intro.hpp>
#include <service/IntroSet.hpp>
#include <service/config.hpp>
#include <service/context.hpp>
#include <service/endpoint.hpp>
#include <service/types.hpp>
#include <iostream>
#endif

@ -1,10 +1,11 @@
#ifndef LLARP_SERVICE_IDENTITY_HPP
#define LLARP_SERVICE_IDENTITY_HPP
#include <llarp/bencode.hpp>
#include <crypto.hpp>
#include <llarp/service/Info.hpp>
#include <llarp/service/IntroSet.hpp>
#include <llarp/service/types.hpp>
#include <llarp/bencode.hpp>
#include <service/Info.hpp>
#include <service/IntroSet.hpp>
#include <service/types.hpp>
namespace llarp
{

@ -1,8 +1,9 @@
#ifndef LLARP_SERVICE_INFO_HPP
#define LLARP_SERVICE_INFO_HPP
#include <llarp/bencode.hpp>
#include <crypto.hpp>
#include <llarp/service/types.hpp>
#include <llarp/bencode.hpp>
#include <service/types.hpp>
namespace llarp
{

@ -1,16 +1,16 @@
#ifndef LLARP_SERVICE_INTROSET_HPP
#define LLARP_SERVICE_INTROSET_HPP
#include <llarp/time.hpp>
#include <iostream>
#include <llarp/bencode.hpp>
#include <crypto.hpp>
#include <llarp/bencode.hpp>
#include <llarp/pow.hpp>
#include <llarp/service/Info.hpp>
#include <llarp/service/Intro.hpp>
#include <llarp/service/tag.hpp>
#include <llarp/time.hpp>
#include <service/Info.hpp>
#include <service/Intro.hpp>
#include <service/tag.hpp>
#include <vector>
#include <algorithm>
#include <iostream>
#include <vector>
namespace llarp
{

@ -1,5 +1,6 @@
#include <service/address.hpp>
#include <algorithm>
#include <llarp/service/address.hpp>
namespace llarp
{

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

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

@ -1,11 +1,10 @@
#include <buffer.hpp>
#include <dht/messages/findintro.hpp>
#include <llarp/logic.hpp>
#include <llarp/messages/dht.hpp>
#include <llarp/service/endpoint.hpp>
#include <llarp/service/protocol.hpp>
#include "buffer.hpp"
#include "router.hpp"
#include <router.hpp>
#include <service/endpoint.hpp>
#include <service/protocol.hpp>
namespace llarp
{

@ -1,14 +1,15 @@
#ifndef LLARP_SERVICE_ENDPOINT_HPP
#define LLARP_SERVICE_ENDPOINT_HPP
#include <exit/session.hpp>
#include <llarp/codel.hpp>
#include <llarp/ev.h>
#include <llarp/net.hpp>
#include <llarp/path.hpp>
#include <llarp/pathbuilder.hpp>
#include <llarp/service/Identity.hpp>
#include <llarp/service/handler.hpp>
#include <llarp/service/protocol.hpp>
#include <service/Identity.hpp>
#include <service/handler.hpp>
#include <service/protocol.hpp>
// minimum time between interoset shifts
#ifndef MIN_SHIFT_INTERVAL

@ -1,9 +1,10 @@
#ifndef LLARP_SERVICE_HANDLER_HPP
#define LLARP_SERVICE_HANDLER_HPP
#include <llarp/aligned.hpp>
#include <crypto.hpp>
#include <llarp/service/IntroSet.hpp>
#include <llarp/aligned.hpp>
#include <llarp/path_types.hpp>
#include <service/IntroSet.hpp>
namespace llarp
{

@ -1,9 +1,11 @@
#include <buffer.hpp>
#include <service/Info.hpp>
#include <service/address.hpp>
#include <cassert>
#include <llarp/service/Info.hpp>
#include <llarp/service/address.hpp>
#include "buffer.hpp"
#include <sodium/crypto_generichash.h>
namespace llarp
{
namespace service

@ -1,7 +1,7 @@
#include <llarp/path.hpp>
#include <llarp/service/endpoint.hpp>
#include <llarp/service/lookup.hpp>
#include <llarp/time.hpp>
#include <service/endpoint.hpp>
#include <service/lookup.hpp>
namespace llarp
{

@ -1,8 +1,8 @@
#ifndef LLARP_SERVICE_LOOKUP_HPP
#define LLARP_SERVICE_LOOKUP_HPP
#include <llarp/service/IntroSet.hpp>
#include <routing/message.hpp>
#include <service/IntroSet.hpp>
#include <set>

@ -1,8 +1,8 @@
#include <buffer.hpp>
#include <llarp/logic.hpp>
#include <llarp/service/protocol.hpp>
#include <mem.hpp>
#include <routing/handler.hpp>
#include <service/protocol.hpp>
namespace llarp
{

@ -5,12 +5,12 @@
#include <dht/message.hpp>
#include <llarp/bencode.hpp>
#include <llarp/encrypted.hpp>
#include <llarp/service/Identity.hpp>
#include <llarp/service/Info.hpp>
#include <llarp/service/Intro.hpp>
#include <llarp/service/handler.hpp>
#include <llarp/time.hpp>
#include <routing/message.hpp>
#include <service/Identity.hpp>
#include <service/Info.hpp>
#include <service/Intro.hpp>
#include <service/handler.hpp>
#include <vector>

@ -1,4 +1,4 @@
#include <llarp/service/tag.hpp>
#include <service/tag.hpp>
namespace llarp
{
@ -10,4 +10,4 @@ namespace llarp
return std::string((const char *)data());
}
} // namespace service
} // namespace llarp
} // namespace llarp

@ -0,0 +1,6 @@
#ifndef LLARP_SERVICE_TYPES_HPP
#define LLARP_SERVICE_TYPES_HPP
#include <service/address.hpp>
#include <service/vanity.hpp>
#endif

@ -1,7 +1,7 @@
#include <gtest/gtest.h>
#include <llarp/service.hpp>
#include <llarp/time.hpp>
#include <service.hpp>
struct HiddenServiceTest : public ::testing::Test
{

Loading…
Cancel
Save