mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
modules/client/keys: Typedefs in anonymous namespace to prevent cross-module linkage. (#109)
This commit is contained in:
parent
299e4a2256
commit
afd918d19a
2 changed files with 16 additions and 10 deletions
|
@ -10,11 +10,14 @@
|
|||
|
||||
using namespace ircd;
|
||||
|
||||
using user_devices_map = std::map<m::user::id, json::object>;
|
||||
using host_users_map = std::map<string_view, user_devices_map>;
|
||||
using query_map = std::map<string_view, m::v1::user::keys::claim>;
|
||||
using failure_map = std::map<string_view, std::exception_ptr, std::less<>>;
|
||||
using buffer_list = std::vector<unique_buffer<mutable_buffer>>;
|
||||
namespace
|
||||
{
|
||||
using user_devices_map = std::map<m::user::id, json::object>;
|
||||
using host_users_map = std::map<string_view, user_devices_map>;
|
||||
using query_map = std::map<string_view, m::v1::user::keys::claim>;
|
||||
using failure_map = std::map<string_view, std::exception_ptr, std::less<>>;
|
||||
using buffer_list = std::vector<unique_buffer<mutable_buffer>>;
|
||||
}
|
||||
|
||||
static host_users_map
|
||||
parse_user_request(const json::object &device_keys);
|
||||
|
|
|
@ -10,11 +10,14 @@
|
|||
|
||||
using namespace ircd;
|
||||
|
||||
using user_devices_map = std::map<m::user::id, json::array>;
|
||||
using host_users_map = std::map<string_view, user_devices_map>;
|
||||
using query_map = std::map<string_view, m::v1::user::keys::query>;
|
||||
using failure_map = std::map<string_view, std::exception_ptr, std::less<>>;
|
||||
using buffer_list = std::vector<unique_buffer<mutable_buffer>>;
|
||||
namespace
|
||||
{
|
||||
using user_devices_map = std::map<m::user::id, json::array>;
|
||||
using host_users_map = std::map<string_view, user_devices_map>;
|
||||
using query_map = std::map<string_view, m::v1::user::keys::query>;
|
||||
using failure_map = std::map<string_view, std::exception_ptr, std::less<>>;
|
||||
using buffer_list = std::vector<unique_buffer<mutable_buffer>>;
|
||||
}
|
||||
|
||||
static host_users_map
|
||||
parse_user_request(const json::object &device_keys);
|
||||
|
|
Loading…
Reference in a new issue