Move any_authenticator, control_packet and pid_allocator to detail namespace

Summary: related to T13767

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D28084
This commit is contained in:
Korina Šimičević
2024-02-22 08:09:49 +01:00
parent 634a4bdfa9
commit 29054b4f3c
3 changed files with 6 additions and 8 deletions

View File

@ -9,13 +9,11 @@
#include <async_mqtt5/types.hpp> #include <async_mqtt5/types.hpp>
namespace async_mqtt5 { namespace async_mqtt5::detail {
namespace asio = boost::asio; namespace asio = boost::asio;
using error_code = boost::system::error_code; using error_code = boost::system::error_code;
namespace detail {
using auth_handler_type = asio::any_completion_handler< using auth_handler_type = asio::any_completion_handler<
void (error_code ec, std::string auth_data) void (error_code ec, std::string auth_data)
>; >;
@ -80,8 +78,6 @@ public:
} }
}; };
} // end namespace detail
class any_authenticator { class any_authenticator {
std::string _method; std::string _method;
std::shared_ptr<detail::auth_fun_base> _auth_fun; std::shared_ptr<detail::auth_fun_base> _auth_fun;
@ -128,7 +124,7 @@ public:
} }
}; };
} // end namespace async_mqtt5 } // end namespace async_mqtt5::detail
#endif // !ASYNC_MQTT5_ANY_AUTHENTICATOR #endif // !ASYNC_MQTT5_ANY_AUTHENTICATOR

View File

@ -7,7 +7,7 @@
#include <async_mqtt5/types.hpp> #include <async_mqtt5/types.hpp>
namespace async_mqtt5 { namespace async_mqtt5::detail {
/* max varint number (268'435'455) + fixed header size (1 + 4) */ /* max varint number (268'435'455) + fixed header size (1 + 4) */
static constexpr int32_t default_max_send_size = 268'435'460; static constexpr int32_t default_max_send_size = 268'435'460;
@ -167,6 +167,6 @@ public:
} }
}; };
} // end namespace async_mqtt5 } // end namespace async_mqtt5::detail
#endif // !ASYNC_MQTT5_CONTROL_PACKET_HPP #endif // !ASYNC_MQTT5_CONTROL_PACKET_HPP

View File

@ -15,6 +15,8 @@
namespace async_mqtt5::test { namespace async_mqtt5::test {
using control_code_e = async_mqtt5::detail::control_code_e;
template <typename ...Strings> template <typename ...Strings>
std::string concat_strings(Strings&&... strings) { std::string concat_strings(Strings&&... strings) {
std::ostringstream stream; std::ostringstream stream;