Cleanup includes
This commit is contained in:
parent
ec3d7233b1
commit
58526ee41c
@ -1,20 +1,13 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "tl/expected.hpp"
|
|
||||||
#include <rublon/error.hpp>
|
#include <rublon/error.hpp>
|
||||||
#include <rublon/memory.hpp>
|
#include <rublon/memory.hpp>
|
||||||
#include <rublon/static_string.hpp>
|
#include <rublon/static_string.hpp>
|
||||||
#include <rublon/utils.hpp>
|
#include <rublon/utils.hpp>
|
||||||
|
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
#include <fstream>
|
|
||||||
#include <optional>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <memory_resource>
|
|
||||||
#include <unordered_map>
|
|
||||||
#include <utility>
|
|
||||||
|
|
||||||
namespace rublon {
|
namespace rublon {
|
||||||
class ConfigurationFactory;
|
class ConfigurationFactory;
|
||||||
|
|
||||||
|
|||||||
@ -1,10 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rublon/error.hpp"
|
|
||||||
#include "rublon/static_string.hpp"
|
|
||||||
#include <functional>
|
|
||||||
#include <memory>
|
|
||||||
#include <optional>
|
|
||||||
#include <rublon/configuration.hpp>
|
#include <rublon/configuration.hpp>
|
||||||
#include <rublon/core_handler_interface.hpp>
|
#include <rublon/core_handler_interface.hpp>
|
||||||
#include <rublon/curl.hpp>
|
#include <rublon/curl.hpp>
|
||||||
@ -14,7 +9,6 @@
|
|||||||
#include <rublon/utils.hpp>
|
#include <rublon/utils.hpp>
|
||||||
#include <rublon/websockets.hpp>
|
#include <rublon/websockets.hpp>
|
||||||
|
|
||||||
#include <string_view>
|
|
||||||
#include <tl/expected.hpp>
|
#include <tl/expected.hpp>
|
||||||
|
|
||||||
namespace rublon {
|
namespace rublon {
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rublon/memory.hpp"
|
|
||||||
#include <cstddef>
|
|
||||||
#include <functional>
|
|
||||||
#include <rublon/configuration.hpp>
|
#include <rublon/configuration.hpp>
|
||||||
#include <rublon/error.hpp>
|
#include <rublon/error.hpp>
|
||||||
#include <rublon/utils.hpp>
|
#include <rublon/utils.hpp>
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
#include <tl/expected.hpp>
|
|
||||||
|
|
||||||
#include <rublon/non_owning_ptr.hpp>
|
#include <rublon/non_owning_ptr.hpp>
|
||||||
#include <rublon/stdlib.hpp>
|
#include <rublon/stdlib.hpp>
|
||||||
|
|||||||
@ -1,14 +1,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rublon/memory.hpp"
|
|
||||||
#include "rublon/utils.hpp"
|
|
||||||
#include <rublon/bits.hpp>
|
|
||||||
|
|
||||||
#include <rublon/authentication_step_interface.hpp>
|
#include <rublon/authentication_step_interface.hpp>
|
||||||
|
#include <rublon/bits.hpp>
|
||||||
#include <rublon/configuration.hpp>
|
#include <rublon/configuration.hpp>
|
||||||
#include <rublon/json.hpp>
|
#include <rublon/json.hpp>
|
||||||
#include <rublon/method/method_select.hpp>
|
#include <rublon/method/method_select.hpp>
|
||||||
|
|
||||||
#include <rublon/session.hpp>
|
#include <rublon/session.hpp>
|
||||||
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
@ -26,7 +22,7 @@ class Init : public AuthenticationStep {
|
|||||||
RapidJSONPMRAlloc alloc{&stackResource};
|
RapidJSONPMRAlloc alloc{&stackResource};
|
||||||
|
|
||||||
const auto * rublonMethods = JSONPointer{"/result/methods", &alloc}.Get(coreResponse);
|
const auto * rublonMethods = JSONPointer{"/result/methods", &alloc}.Get(coreResponse);
|
||||||
const auto * rublonTid = JSONPointer{"/result/tid", &alloc}.Get(coreResponse);
|
const auto * rublonTid = JSONPointer{"/result/tid", &alloc}.Get(coreResponse);
|
||||||
|
|
||||||
if(not rublonMethods)
|
if(not rublonMethods)
|
||||||
log(LogLevel::Error, "core response has no methods");
|
log(LogLevel::Error, "core response has no methods");
|
||||||
@ -47,7 +43,7 @@ class Init : public AuthenticationStep {
|
|||||||
memory::MonotonicStackResource< 2_kB > memoryResource;
|
memory::MonotonicStackResource< 2_kB > memoryResource;
|
||||||
auto & alloc = coreRequest.GetAllocator();
|
auto & alloc = coreRequest.GetAllocator();
|
||||||
|
|
||||||
const auto os = details::osName(&memoryResource);
|
const auto os = details::osName(&memoryResource);
|
||||||
const auto host = details::hostname(&memoryResource);
|
const auto host = details::hostname(&memoryResource);
|
||||||
|
|
||||||
if(os == "unknown") {
|
if(os == "unknown") {
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rublon/static_string.hpp"
|
|
||||||
#include <optional>
|
|
||||||
#include <rublon/stdlib.hpp>
|
#include <rublon/stdlib.hpp>
|
||||||
|
#include <rublon/static_string.hpp>
|
||||||
|
|
||||||
namespace rublon {
|
namespace rublon {
|
||||||
|
|
||||||
|
|||||||
@ -1,15 +1,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "rublon/memory.hpp"
|
#include <rublon/memory.hpp>
|
||||||
#include <memory>
|
|
||||||
#include <memory_resource>
|
|
||||||
#include <rapidjson/document.h>
|
|
||||||
#include <rublon/bits.hpp>
|
#include <rublon/bits.hpp>
|
||||||
#include <rublon/configuration.hpp>
|
#include <rublon/configuration.hpp>
|
||||||
#include <rublon/json.hpp>
|
#include <rublon/json.hpp>
|
||||||
#include <rublon/utils.hpp>
|
#include <rublon/utils.hpp>
|
||||||
#include <string>
|
#include <rapidjson/document.h>
|
||||||
#include <string_view>
|
|
||||||
|
|
||||||
|
|
||||||
namespace rublon {
|
namespace rublon {
|
||||||
|
|||||||
@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <optional>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <tl/expected.hpp>
|
#include <tl/expected.hpp>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user