From 4cdec1bce6011eb099d331f3ed95d62326ddf3a2 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 25 Aug 2018 19:40:51 -0700 Subject: [PATCH] modules/federation/federation: Renamespace m::feds to m::feds::v1. --- modules/federation/federation.cc | 34 ++++++++++++++++---------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/federation/federation.cc b/modules/federation/federation.cc index 08dcee562..219ee2563 100644 --- a/modules/federation/federation.cc +++ b/modules/federation/federation.cc @@ -16,7 +16,7 @@ IRCD_MODULE "Federation :General Library and Utils" }; -namespace ircd::m::feds +namespace ircd::m::feds::v1 { struct version; struct state; @@ -24,7 +24,7 @@ namespace ircd::m::feds struct perspective; } -struct ircd::m::feds::version +struct ircd::m::feds::v1::version :m::v1::version { using closure = std::function; @@ -46,10 +46,10 @@ struct ircd::m::feds::version version(const version &) = delete; }; -std::list +std::list feds__version(const m::room::id &room_id) { - std::list reqs; + std::list reqs; m::room::origins{room_id}.for_each([&reqs] (const string_view &origin) { @@ -74,7 +74,7 @@ feds__version(const m::room::id &room_id) extern "C" void feds__version(const m::room::id &room_id, const milliseconds &timeout, - const m::feds::version::closure &closure) + const m::feds::v1::version::closure &closure) { auto reqs { @@ -118,7 +118,7 @@ feds__version(const m::room::id &room_id, } } -struct ircd::m::feds::state +struct ircd::m::feds::v1::state :m::v1::state { using closure = std::function; @@ -142,11 +142,11 @@ struct ircd::m::feds::state state(const state &) = delete; }; -std::list +std::list feds__state(const m::room::id &room_id, const m::event::id &event_id) { - std::list reqs; + std::list reqs; m::room::origins{room_id}.for_each([&room_id, &event_id, &reqs] (const string_view &origin) { @@ -172,7 +172,7 @@ extern "C" void feds__state(const m::room::id &room_id, const m::event::id &event_id, const milliseconds &timeout, - const m::feds::state::closure &closure) + const m::feds::v1::state::closure &closure) { auto reqs { @@ -295,7 +295,7 @@ feds__event(const m::event::id &event_id, std::ostream &out) } } -struct ircd::m::feds::head +struct ircd::m::feds::v1::head :m::v1::make_join { using closure = std::function; @@ -314,11 +314,11 @@ struct ircd::m::feds::head {} }; -std::list +std::list feds__head(const m::room::id &room_id, const m::user::id &user_id) { - std::list reqs; + std::list reqs; m::room::origins{room_id}.for_each([&reqs, &room_id, &user_id] (const string_view &origin) { @@ -344,7 +344,7 @@ extern "C" void feds__head(const m::room::id &room_id, const m::user::id &user_id, const milliseconds &timeout, - const m::feds::head::closure &closure) + const m::feds::v1::head::closure &closure) { auto reqs { @@ -487,7 +487,7 @@ feds__backfill(const m::room::id &room_id, } } -struct ircd::m::feds::perspective +struct ircd::m::feds::v1::perspective :m::v1::key::query { using closure = std::function; @@ -513,11 +513,11 @@ struct ircd::m::feds::perspective perspective(const perspective &) = delete; }; -std::list +std::list feds__perspective(const m::room::id &room_id, const m::v1::key::server_key &server_key) { - std::list reqs; + std::list reqs; m::room::origins{room_id}.for_each([&reqs, &server_key] (const string_view &origin) { @@ -543,7 +543,7 @@ extern "C" void feds__perspective(const m::room::id &room_id, const m::v1::key::server_key &server_key, // pair const milliseconds &timeout, - const m::feds::perspective::closure &closure) + const m::feds::v1::perspective::closure &closure) { auto reqs {