0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 00:02:34 +01:00

ircd:Ⓜ️ Remove remaining export macros on central library definitions.

This commit is contained in:
Jason Volk 2020-03-16 10:50:18 -07:00
parent 82bc4be5e1
commit a725ff3521
42 changed files with 0 additions and 300 deletions

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::breadcrumb_rooms::set(const json::array &rooms)
const
{
@ -25,7 +24,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::breadcrumb_rooms::for_each(const closure_bool &closure)
const
{
@ -45,7 +43,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::breadcrumb_rooms::get(const closure &closure)
const
{
@ -57,7 +54,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::breadcrumb_rooms::get(std::nothrow_t,
const closure &closure)
const

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
std::map<std::string, long>
IRCD_MODULE_EXPORT
ircd::m::device::count_one_time_keys(const user &user,
const string_view &device_id)
{
@ -48,7 +47,6 @@ ircd::m::device::count_one_time_keys(const user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::set(const m::user &user,
const device &device)
{
@ -80,7 +78,6 @@ ircd::m::device::set(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::set(const m::user &user,
const string_view &id,
const string_view &prop,
@ -105,7 +102,6 @@ ircd::m::device::set(const m::user &user,
/// ircd.device.* (and ircd.device) which have a state_key of the device_id.
/// Those events are redacted which removes them from appearing in the state.
bool
IRCD_MODULE_EXPORT
ircd::m::device::del(const m::user &user,
const string_view &id)
{
@ -139,7 +135,6 @@ ircd::m::device::del(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::has(const m::user &user,
const string_view &id)
{
@ -162,7 +157,6 @@ ircd::m::device::has(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::has(const m::user &user,
const string_view &id,
const string_view &prop)
@ -178,7 +172,6 @@ ircd::m::device::has(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::get(const m::user &user,
const string_view &id,
const string_view &prop,
@ -202,7 +195,6 @@ ircd::m::device::get(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::get(std::nothrow_t,
const m::user &user,
const string_view &id,
@ -235,7 +227,6 @@ ircd::m::device::get(std::nothrow_t,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::for_each(const m::user &user,
const string_view &device_id,
const closure_bool &closure)
@ -262,7 +253,6 @@ ircd::m::device::for_each(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::for_each(const m::user &user,
const closure_bool &closure)
{
@ -284,7 +274,6 @@ ircd::m::device::for_each(const m::user &user,
}
ircd::m::device::id::buf
IRCD_MODULE_EXPORT
ircd::m::device::access_token_to_id(const string_view &token)
{
id::buf ret;
@ -298,7 +287,6 @@ ircd::m::device::access_token_to_id(const string_view &token)
}
bool
IRCD_MODULE_EXPORT
ircd::m::device::access_token_to_id(const string_view &token,
const closure &closure)
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::display_name(const mutable_buffer &out,
const room &room)
{

View file

@ -1077,7 +1077,6 @@ ircd::m::event::my(const idx &event_idx)
// event::event
//
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::members &members)
:super_type
{
@ -1092,7 +1091,6 @@ ircd::m::event::event(const json::members &members)
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::iov &members)
:event
{
@ -1104,7 +1102,6 @@ ircd::m::event::event(const json::iov &members)
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::iov &members,
const id &id)
:super_type
@ -1118,7 +1115,6 @@ ircd::m::event::event(const json::iov &members,
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::object &source)
:super_type
{
@ -1137,7 +1133,6 @@ ircd::m::event::event(const json::object &source)
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::object &source,
const keys &keys)
:super_type
@ -1157,7 +1152,6 @@ ircd::m::event::event(const json::object &source,
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(id::buf &buf,
const json::object &source,
const string_view &version)
@ -1179,7 +1173,6 @@ ircd::m::event::event(id::buf &buf,
{
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::object &source,
const id &event_id)
try
@ -1214,7 +1207,6 @@ catch(const json::parse_error &e)
};
}
IRCD_MODULE_EXPORT
ircd::m::event::event(const json::object &source,
const id &event_id,
const keys &keys)

View file

@ -51,7 +51,6 @@ ircd::m::event_append_default_keys
event_append_exclude_keys
};
IRCD_MODULE_EXPORT
ircd::m::event::append::append(json::stack::array &array,
const event &event_,
const opts &opts)
@ -75,7 +74,6 @@ ircd::m::event::append::append(json::stack::array &array,
{
}
IRCD_MODULE_EXPORT
ircd::m::event::append::append(json::stack::object &object,
const event &event,
const opts &opts)

View file

@ -21,7 +21,6 @@ ircd::m::events::dump_buffer_size
};
void
IRCD_MODULE_EXPORT
ircd::m::events::rebuild()
{
static const event::fetch::opts fopts
@ -86,7 +85,6 @@ ircd::m::events::rebuild()
}
void
IRCD_MODULE_EXPORT
ircd::m::events::dump__file(const string_view &filename)
{
const fs::fd file
@ -198,7 +196,6 @@ ircd::m::events::dump__file(const string_view &filename)
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::for_each(const range &range,
const event_filter &filter,
const closure &closure)
@ -223,7 +220,6 @@ ircd::m::events::for_each(const range &range,
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::for_each(const range &range,
const closure &closure)
{
@ -262,7 +258,6 @@ ircd::m::events::for_each(const range &range,
///TODO: This impl is temp. Need better dispatching based on filter before
///TODO: fetching event.
bool
IRCD_MODULE_EXPORT
ircd::m::events::for_each(const range &range,
const event_filter &filter,
const event::closure_idx_bool &closure)
@ -297,7 +292,6 @@ ircd::m::events::for_each(const range &range,
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::for_each(const range &range,
const event::closure_idx_bool &closure)
{
@ -355,7 +349,6 @@ ircd::m::events::for_each(const range &range,
//
bool
IRCD_MODULE_EXPORT
ircd::m::events::state::for_each(const closure &closure)
{
static const tuple none
@ -371,7 +364,6 @@ ircd::m::events::state::for_each(const closure &closure)
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::state::for_each(const tuple &query,
const closure &closure)
{
@ -422,7 +414,6 @@ ircd::m::events::state::for_each(const tuple &query,
//
bool
IRCD_MODULE_EXPORT
ircd::m::events::type::has(const string_view &type)
{
bool ret{false};
@ -437,7 +428,6 @@ ircd::m::events::type::has(const string_view &type)
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::type::has_prefix(const string_view &type)
{
bool ret{false};
@ -452,7 +442,6 @@ ircd::m::events::type::has_prefix(const string_view &type)
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::type::for_each_in(const string_view &type,
const closure &closure)
{
@ -487,7 +476,6 @@ ircd::m::events::type::for_each_in(const string_view &type,
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::type::for_each(const string_view &prefix,
const closure_name &closure)
{
@ -533,7 +521,6 @@ ircd::m::events::type::for_each(const string_view &prefix,
//
bool
IRCD_MODULE_EXPORT
ircd::m::events::origin::for_each_in(const string_view &origin,
const sender::closure &closure)
{
@ -573,7 +560,6 @@ ircd::m::events::origin::for_each_in(const string_view &origin,
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::origin::for_each(const string_view &prefix,
const closure_name &closure)
{
@ -624,7 +610,6 @@ ircd::m::events::origin::for_each(const string_view &prefix,
//
bool
IRCD_MODULE_EXPORT
ircd::m::events::sender::for_each_in(const id::user &user,
const closure &closure)
{
@ -659,7 +644,6 @@ ircd::m::events::sender::for_each_in(const id::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::events::sender::for_each(const string_view &prefix_,
const closure_name &closure)
{

View file

@ -91,7 +91,6 @@ noexcept
// m/feds.h
//
IRCD_MODULE_EXPORT
ircd::m::feds::execute::execute(const vector_view<const opts> &optsv,
const closure &closure)
:boolean{true}

View file

@ -138,7 +138,6 @@ wait_for_run()
}
ircd::ctx::future<ircd::m::fetch::result>
IRCD_MODULE_EXPORT
ircd::m::fetch::start(opts opts)
{
assert(opts.room_id && opts.event_id);
@ -196,21 +195,18 @@ ircd::m::fetch::start(opts opts)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::fetch::count()
{
return requests.size();
}
bool
IRCD_MODULE_EXPORT
ircd::m::fetch::exists(const opts &opts)
{
return requests.count(opts);
}
bool
IRCD_MODULE_EXPORT
ircd::m::fetch::for_each(const std::function<bool (request &)> &closure)
{
for(auto &request : requests)
@ -221,7 +217,6 @@ ircd::m::fetch::for_each(const std::function<bool (request &)> &closure)
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::fetch::reflect(const op &op)
{
switch(op)

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty_oneline(std::ostream &s,
const m::keys &keys)
{
@ -41,7 +40,6 @@ ircd::m::pretty_oneline(std::ostream &s,
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty(std::ostream &s,
const m::keys &keys)
{
@ -80,7 +78,6 @@ ircd::m::pretty(std::ostream &s,
}
bool
IRCD_MODULE_EXPORT
ircd::m::verify(const m::keys &keys,
std::nothrow_t)
noexcept try
@ -101,7 +98,6 @@ catch(const std::exception &e)
}
void
IRCD_MODULE_EXPORT
ircd::m::verify(const m::keys &keys)
{
const json::object &verify_keys
@ -182,7 +178,6 @@ ircd::m::verify(const m::keys &keys)
}
bool
IRCD_MODULE_EXPORT
ircd::m::expired(const m::keys &keys)
{
const auto &valid_until_ts
@ -210,7 +205,6 @@ ircd::m::keys_query_timeout
};
void
IRCD_MODULE_EXPORT
ircd::m::keys::query(const string_view &query_server,
const queries &queries,
const closure_bool &closure)
@ -284,7 +278,6 @@ ircd::m::keys_get_timeout
};
size_t
IRCD_MODULE_EXPORT
ircd::m::keys::fetch(const queries &queries)
{
size_t ret(0);
@ -298,7 +291,6 @@ ircd::m::keys::fetch(const queries &queries)
}
void
IRCD_MODULE_EXPORT
ircd::m::keys::get(const string_view &server_name,
const closure &closure)
{
@ -306,7 +298,6 @@ ircd::m::keys::get(const string_view &server_name,
}
void
IRCD_MODULE_EXPORT
ircd::m::keys::get(const string_view &server_name,
const string_view &key_id,
const closure &closure)
@ -388,7 +379,6 @@ catch(const ctx::timeout &e)
}
bool
IRCD_MODULE_EXPORT
ircd::m::keys::get(const queries &queries,
const closure_bool &closure)
{
@ -482,7 +472,6 @@ ircd::m::keys::get(const queries &queries,
//
size_t
IRCD_MODULE_EXPORT
ircd::m::keys::cache::set(const json::object &keys)
{
const json::string &server_name
@ -519,7 +508,6 @@ ircd::m::keys::cache::set(const json::object &keys)
}
bool
IRCD_MODULE_EXPORT
ircd::m::keys::cache::get(const string_view &server_name,
const string_view &key_id,
const keys::closure &closure)
@ -545,7 +533,6 @@ ircd::m::keys::cache::get(const string_view &server_name,
}
bool
IRCD_MODULE_EXPORT
ircd::m::keys::cache::has(const string_view &server_name,
const string_view &key_id)
{
@ -564,7 +551,6 @@ ircd::m::keys::cache::has(const string_view &server_name,
}
bool
IRCD_MODULE_EXPORT
ircd::m::keys::cache::for_each(const string_view &server_name,
const keys::closure_bool &closure)
{

View file

@ -8,7 +8,6 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
IRCD_MODULE_EXPORT
ircd::m::node::node(const string_view &node_id)
:node_id{node_id}
{
@ -16,7 +15,6 @@ ircd::m::node::node(const string_view &node_id)
}
void
IRCD_MODULE_EXPORT
ircd::m::node::key(const string_view &key_id,
const ed25519_closure &closure)
const
@ -37,7 +35,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::node::key(const string_view &key_id,
const key_closure &closure)
const
@ -68,7 +65,6 @@ const
/// Generates a node-room ID into buffer; see room_id() overload.
ircd::m::id::room::buf
IRCD_MODULE_EXPORT
ircd::m::node::room_id()
const
{
@ -81,7 +77,6 @@ const
/// the node's full mxid.
///
ircd::m::id::room
IRCD_MODULE_EXPORT
ircd::m::node::room_id(const mutable_buffer &buf)
const
{
@ -115,7 +110,6 @@ const
}
ircd::m::node
IRCD_MODULE_EXPORT
ircd::m::create(const node &node,
const json::members &args)
{
@ -130,7 +124,6 @@ ircd::m::create(const node &node,
}
bool
IRCD_MODULE_EXPORT
ircd::m::exists(const node &node)
{
const m::room::id::buf room_id
@ -142,7 +135,6 @@ ircd::m::exists(const node &node)
}
bool
IRCD_MODULE_EXPORT
ircd::m::my(const node &node)
{
return my_host(node.node_id);
@ -152,7 +144,6 @@ ircd::m::my(const node &node)
// node::room
//
IRCD_MODULE_EXPORT
ircd::m::node::room::room(const string_view &node_id)
:room
{
@ -161,7 +152,6 @@ ircd::m::node::room::room(const string_view &node_id)
{
}
IRCD_MODULE_EXPORT
ircd::m::node::room::room(const m::node &node)
:node
{

View file

@ -21,7 +21,6 @@ ircd::m::presence_valid_states
"unavailable",
};
IRCD_MODULE_EXPORT
ircd::m::presence::presence(const user &user,
const mutable_buffer &buf)
:edu::m_presence{[&user, &buf]
@ -42,7 +41,6 @@ ircd::m::presence::presence(const user &user,
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::presence::set(const user &user,
const string_view &presence,
const string_view &status_msg)
@ -57,7 +55,6 @@ ircd::m::presence::set(const user &user,
}
void
IRCD_MODULE_EXPORT
ircd::m::presence::get(const user &user,
const closure &closure)
{
@ -69,7 +66,6 @@ ircd::m::presence::get(const user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::presence::get(std::nothrow_t,
const user &user,
const closure &closure)
@ -89,7 +85,6 @@ ircd::m::presence::get(std::nothrow_t,
}
ircd::m::event::idx
IRCD_MODULE_EXPORT
ircd::m::presence::get(const user &user)
{
const event::idx ret
@ -107,7 +102,6 @@ ircd::m::presence::get(const user &user)
}
bool
IRCD_MODULE_EXPORT
ircd::m::presence::get(const std::nothrow_t,
const m::user &user,
const m::presence::closure_event &closure,
@ -138,7 +132,6 @@ ircd::m::presence::get(const std::nothrow_t,
}
ircd::m::event::idx
IRCD_MODULE_EXPORT
ircd::m::presence::get(const std::nothrow_t,
const m::user &user)
{
@ -156,7 +149,6 @@ ircd::m::presence::get(const std::nothrow_t,
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::presence::set(const m::presence &content)
{
const m::user user
@ -179,7 +171,6 @@ ircd::m::presence::set(const m::presence &content)
}
bool
IRCD_MODULE_EXPORT
ircd::m::presence::valid_state(const string_view &state)
{
return std::any_of(begin(presence_valid_states), end(presence_valid_states), [&state]

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty_stateline(std::ostream &out,
const event &event,
const event::idx &event_idx)
@ -138,7 +137,6 @@ ircd::m::pretty_stateline(std::ostream &out,
}
std::string
IRCD_MODULE_EXPORT
ircd::m::pretty(const event &event)
{
std::string ret;
@ -150,7 +148,6 @@ ircd::m::pretty(const event &event)
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty(std::ostream &s,
const event &event)
{
@ -237,7 +234,6 @@ ircd::m::pretty(std::ostream &s,
}
std::string
IRCD_MODULE_EXPORT
ircd::m::pretty_oneline(const event &event,
const int &fmt)
{
@ -250,7 +246,6 @@ ircd::m::pretty_oneline(const event &event,
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty_oneline(std::ostream &s,
const event &event,
const int &fmt)
@ -369,7 +364,6 @@ ircd::m::pretty_oneline(std::ostream &s,
}
std::string
IRCD_MODULE_EXPORT
ircd::m::pretty_msgline(const event &event)
{
std::string ret;
@ -381,7 +375,6 @@ ircd::m::pretty_msgline(const event &event)
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty_msgline(std::ostream &s,
const event &event)
{
@ -423,7 +416,6 @@ ircd::m::pretty_msgline(std::ostream &s,
}
std::string
IRCD_MODULE_EXPORT
ircd::m::pretty(const event::prev &prev)
{
std::string ret;
@ -435,7 +427,6 @@ ircd::m::pretty(const event::prev &prev)
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty(std::ostream &s,
const event::prev &prev)
{
@ -483,7 +474,6 @@ ircd::m::pretty(std::ostream &s,
}
std::ostream &
IRCD_MODULE_EXPORT
ircd::m::pretty_oneline(std::ostream &s,
const event::prev &prev)
{

View file

@ -9,14 +9,12 @@
// full license for this software is available in the LICENSE file.
decltype(ircd::m::receipt::log)
IRCD_MODULE_EXPORT_DATA
ircd::m::receipt::log
{
"m.receipt"
};
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::receipt::read(const m::room::id &room_id,
const m::user::id &user_id,
const m::event::id &event_id,
@ -50,7 +48,6 @@ ircd::m::receipt::read(const m::room::id &room_id,
}
bool
IRCD_MODULE_EXPORT
ircd::m::receipt::get(const m::room::id &room_id,
const m::user::id &user_id,
const m::event::id::closure &closure)
@ -81,7 +78,6 @@ ircd::m::receipt::get(const m::room::id &room_id,
/// Does the user wish to not send receipts for events sent by its specific
/// sender?
bool
IRCD_MODULE_EXPORT
ircd::m::receipt::ignoring(const m::user &user,
const m::event::id &event_id)
{
@ -98,7 +94,6 @@ ircd::m::receipt::ignoring(const m::user &user,
/// Does the user wish to not send receipts for events for this entire room?
bool
IRCD_MODULE_EXPORT
ircd::m::receipt::ignoring(const m::user &user,
const m::room::id &room_id)
{
@ -107,7 +102,6 @@ ircd::m::receipt::ignoring(const m::user &user,
}
bool
IRCD_MODULE_EXPORT
ircd::m::receipt::freshest(const m::room::id &room_id,
const m::user::id &user_id,
const m::event::id &event_id)
@ -168,7 +162,6 @@ catch(const std::exception &e)
}
bool
IRCD_MODULE_EXPORT
ircd::m::receipt::exists(const m::room::id &room_id,
const m::user::id &user_id,
const m::event::id &event_id)

View file

@ -33,7 +33,6 @@ ircd::m::alias_fetch_timeout
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::aliases::count()
const
{
@ -41,7 +40,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::aliases::count(const string_view &server)
const
{
@ -56,7 +54,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::has(const alias &alias)
const
{
@ -69,7 +66,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::for_each(const closure_bool &closure)
const
{
@ -86,7 +82,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::for_each(const string_view &server,
const closure_bool &closure)
const
@ -98,7 +93,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::for_each(const m::room &room,
const string_view &server,
const closure_bool &closure)
@ -145,7 +139,6 @@ ircd::m::room::aliases::for_each(const m::room &room,
//
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::del(const alias &alias)
{
char buf[m::id::room_alias::buf::SIZE];
@ -189,7 +182,6 @@ ircd::m::room::aliases::cache::del(const alias &alias)
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::set(const alias &alias,
const id &id)
{
@ -221,7 +213,6 @@ ircd::m::room::aliases::cache::set(const alias &alias,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::get(std::nothrow_t,
const alias &alias,
const id::closure &closure)
@ -284,7 +275,6 @@ ircd::m::room::aliases::cache::get(std::nothrow_t,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::fetch(std::nothrow_t,
const alias &a,
const string_view &remote)
@ -307,7 +297,6 @@ catch(const std::exception &e)
}
ircd::m::room::id::buf
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::get(const alias &a)
{
id::buf ret;
@ -321,7 +310,6 @@ ircd::m::room::aliases::cache::get(const alias &a)
}
ircd::m::room::id::buf
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::get(std::nothrow_t,
const alias &a)
{
@ -336,7 +324,6 @@ ircd::m::room::aliases::cache::get(std::nothrow_t,
}
void
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::get(const alias &a,
const id::closure &c)
{
@ -349,14 +336,12 @@ ircd::m::room::aliases::cache::get(const alias &a,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::for_each(const closure_bool &c)
{
return for_each(string_view{}, c);
}
void
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::fetch(const alias &alias,
const string_view &remote)
try
@ -423,7 +408,6 @@ catch(const server::unavailable &e)
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::for_each(const string_view &server,
const closure_bool &closure)
{
@ -473,7 +457,6 @@ ircd::m::room::aliases::cache::for_each(const string_view &server,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::has(const alias &alias)
{
const auto &event_idx
@ -503,7 +486,6 @@ ircd::m::room::aliases::cache::has(const alias &alias)
}
ircd::system_point
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::expires(const alias &alias)
{
const auto event_idx
@ -528,7 +510,6 @@ ircd::m::room::aliases::cache::expires(const alias &alias)
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::expired(const event::idx &event_idx)
{
const milliseconds age
@ -545,7 +526,6 @@ ircd::m::room::aliases::cache::expired(const event::idx &event_idx)
}
ircd::milliseconds
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::age(const event::idx &event_idx)
{
time_t ts;
@ -564,7 +544,6 @@ ircd::m::room::aliases::cache::age(const event::idx &event_idx)
}
ircd::m::event::idx
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::getidx(const alias &alias)
{
thread_local char swapbuf alignas(16) [m::id::room_alias::buf::SIZE];
@ -598,7 +577,6 @@ ircd::m::room::aliases::cache::getidx(const alias &alias)
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::room::aliases::cache::make_key(const mutable_buffer &out,
const alias &alias)
{

View file

@ -31,7 +31,6 @@ ircd::m::room_auth_hook
//
ircd::json::array
IRCD_MODULE_EXPORT
ircd::m::room::auth::generate(const mutable_buffer &buf,
const m::room &room,
const m::event &event)
@ -48,7 +47,6 @@ ircd::m::room::auth::generate(const mutable_buffer &buf,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::generate(json::stack::array &out,
const m::room &room,
const m::event &event)
@ -135,7 +133,6 @@ ircd::m::room::auth::generate(json::stack::array &out,
//
void
IRCD_MODULE_EXPORT
ircd::m::room::auth::check(const event &event)
{
const bool check_static
@ -206,7 +203,6 @@ ircd::m::room::auth::check(const event &event)
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check_relative(const event &event)
try
{
@ -232,7 +228,6 @@ catch(const std::exception &)
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check_present(const event &event)
try
{
@ -270,7 +265,6 @@ catch(const std::exception &)
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check_static(const event &event)
try
{
@ -317,7 +311,6 @@ catch(const std::exception &)
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check(const event &event,
const room &room)
{
@ -343,7 +336,6 @@ ircd::m::room::auth::check(const event &event,
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check(const event &event,
const vector_view<event::idx> &idx)
{
@ -367,7 +359,6 @@ ircd::m::room::auth::check(const event &event,
}
ircd::m::room::auth::passfail
IRCD_MODULE_EXPORT
ircd::m::room::auth::check(const event &event,
hookdata &data)
try
@ -590,7 +581,6 @@ ircd::m::check_room_auth_rule_9(const m::event &event,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::is_power_event(const m::event &event)
{
if(!json::get<"type"_>(event))
@ -624,7 +614,6 @@ ircd::m::room::auth::is_power_event(const m::event &event)
// room::auth::hookdata
//
IRCD_MODULE_EXPORT
ircd::m::room::auth::hookdata::hookdata(const m::event &event,
const vector_view<const m::event *> &auth_events)
:prev
@ -691,7 +680,6 @@ const
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::count()
const
{
@ -699,7 +687,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::count(const string_view &type)
const
{
@ -714,7 +701,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::has(const event::idx &idx)
const
{
@ -725,7 +711,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::has(const string_view &type)
const
{
@ -740,7 +725,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::for_each(const closure_bool &closure)
const
{
@ -748,7 +732,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::refs::for_each(const string_view &type,
const closure_bool &closure)
const
@ -793,7 +776,6 @@ const
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::auth::chain::depth()
const
{
@ -808,7 +790,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::chain::has(const string_view &type)
const
{
@ -829,7 +810,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::auth::chain::for_each(const closure &closure)
const
{

View file

@ -81,7 +81,6 @@ ircd::m::bootstrap::make_join_timeout
// m::room::bootstrap
//
IRCD_MODULE_EXPORT
ircd::m::room::bootstrap::bootstrap(m::event::id::buf &event_id_buf,
const m::room::id &room_id,
const m::user::id &user_id,
@ -120,7 +119,6 @@ ircd::m::room::bootstrap::bootstrap(m::event::id::buf &event_id_buf,
};
}
IRCD_MODULE_EXPORT
ircd::m::room::bootstrap::bootstrap(const m::event::id &event_id,
const string_view &host)
try
@ -168,7 +166,6 @@ catch(const std::exception &e)
};
}
IRCD_MODULE_EXPORT
ircd::m::room::bootstrap::bootstrap(const m::event &event,
const string_view &host)
try

View file

@ -28,7 +28,6 @@ struct ircd::m::report_error
};
decltype(ircd::m::createroom::version_default)
IRCD_MODULE_EXPORT_DATA
ircd::m::createroom::version_default
{
{ "name", "ircd.m.createroom.version_default" },
@ -36,7 +35,6 @@ ircd::m::createroom::version_default
};
decltype(ircd::m::createroom::spec_presets)
IRCD_MODULE_EXPORT_DATA
ircd::m::createroom::spec_presets
{
"private_chat",
@ -45,7 +43,6 @@ ircd::m::createroom::spec_presets
};
ircd::m::room
IRCD_MODULE_EXPORT
ircd::m::create(const createroom &c,
json::stack::array *const &errors)
try
@ -377,7 +374,6 @@ catch(const db::not_found &e)
}
bool
IRCD_MODULE_EXPORT
ircd::m::createroom::spec_preset(const string_view &preset)
{
const auto &s(spec_presets);

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
decltype(ircd::m::room::events::viewport_size)
IRCD_MODULE_EXPORT_DATA
ircd::m::room::events::viewport_size
{
{ "name", "ircd.m.room.events.viewport.size" },
@ -17,7 +16,6 @@ ircd::m::room::events::viewport_size
};
std::pair<int64_t, ircd::m::event::idx>
IRCD_MODULE_EXPORT
ircd::m::viewport(const room &room)
{
std::pair<int64_t, m::event::idx> ret
@ -45,7 +43,6 @@ ircd::m::viewport(const room &room)
}
std::pair<int64_t, ircd::m::event::idx>
IRCD_MODULE_EXPORT
ircd::m::twain(const room &room)
{
std::pair<int64_t, m::event::idx> ret
@ -70,7 +67,6 @@ ircd::m::twain(const room &room)
}
std::pair<int64_t, ircd::m::event::idx>
IRCD_MODULE_EXPORT
ircd::m::sounding(const room &room)
{
std::pair<int64_t, m::event::idx> ret
@ -95,7 +91,6 @@ ircd::m::sounding(const room &room)
}
std::pair<int64_t, ircd::m::event::idx>
IRCD_MODULE_EXPORT
ircd::m::hazard(const room &room)
{
std::pair<int64_t, m::event::idx> ret
@ -124,7 +119,6 @@ ircd::m::hazard(const room &room)
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::count(const m::event::idx_range &range)
{
const auto &[a, b]
@ -143,7 +137,6 @@ ircd::m::room::events::count(const m::event::idx_range &range)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::count(const m::room &room,
const m::event::idx_range &range)
{
@ -182,7 +175,6 @@ ircd::m::room::events::count(const m::room &room,
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::prefetch_viewport(const m::room &room)
{
m::room::events it
@ -208,7 +200,6 @@ ircd::m::room::events::prefetch_viewport(const m::room &room)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::prefetch(const m::room &room,
const depth_range &range)
{
@ -238,7 +229,6 @@ ircd::m::room::events::prefetch(const m::room &room,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::preseek(const m::room &room,
const uint64_t &depth)
{
@ -462,7 +452,6 @@ const
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::missing::count()
const
{
@ -478,7 +467,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::missing::for_each(const closure &closure)
const
{
@ -486,7 +474,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::missing::for_each(const int64_t &min_depth,
const closure &closure)
const
@ -524,7 +511,6 @@ const
//
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::sounding::rfor_each(const closure &closure)
const
{
@ -563,7 +549,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::sounding::for_each(const closure &closure)
const
{
@ -602,7 +587,6 @@ namespace ircd::m::dbs
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::horizon::rebuild()
{
m::dbs::write_opts opts;
@ -642,7 +626,6 @@ ircd::m::room::events::horizon::rebuild()
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::events::horizon::count()
const
{
@ -658,7 +641,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::events::horizon::for_each(const closure &closure)
const
{

View file

@ -14,7 +14,6 @@ namespace ircd::m
static void append_v3(json::stack::array &, const event::id &);
}
IRCD_MODULE_EXPORT
ircd::m::room::head::generate::generate(const mutable_buffer &buf,
const m::room::head &head,
const opts &opts)
@ -40,7 +39,6 @@ ircd::m::room::head::generate::generate(const mutable_buffer &buf,
this->array = out.completed();
}
IRCD_MODULE_EXPORT
ircd::m::room::head::generate::generate(json::stack::array &out,
const m::room::head &head,
const opts &opts)
@ -218,7 +216,6 @@ ircd::m::append_v3(json::stack::array &out,
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::head::count()
const
{
@ -234,7 +231,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::head::has(const event::id &event_id)
const
{
@ -250,7 +246,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::head::for_each(const closure &closure)
const
{
@ -283,7 +278,6 @@ const
//
size_t
IRCD_MODULE_EXPORT
ircd::m::room::head::reset(const head &head)
{
size_t ret{0};
@ -346,7 +340,6 @@ ircd::m::room::head::reset(const head &head)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::head::rebuild(const head &head)
{
size_t ret{0};
@ -385,7 +378,6 @@ ircd::m::room::head::rebuild(const head &head)
}
void
IRCD_MODULE_EXPORT
ircd::m::room::head::modify(const m::event::id &event_id,
const db::op &op,
const bool &refs)

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::join(const room::alias &room_alias,
const user::id &user_id)
{
@ -44,7 +43,6 @@ ircd::m::join(const room::alias &room_alias,
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::join(const m::room &room,
const m::id::user &user_id)
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::leave(const room &room,
const id::user &user_id)
{

View file

@ -25,7 +25,6 @@
/// This option has no effect on the room::server_acl interface itself, it is
/// available for the callsite to check independently before using the iface.
decltype(ircd::m::room::server_acl::enable_write)
IRCD_MODULE_EXPORT_DATA
ircd::m::room::server_acl::enable_write
{
{ "name", "ircd.m.room.server_acl.enable.write" },
@ -43,7 +42,6 @@ ircd::m::room::server_acl::enable_write
/// This option has no effect on the room::server_acl interface itself, it is
/// available for the callsite to check independently before using the iface.
decltype(ircd::m::room::server_acl::enable_read)
IRCD_MODULE_EXPORT_DATA
ircd::m::room::server_acl::enable_read
{
{ "name", "ircd.m.room.server_acl.enable.read" },
@ -63,7 +61,6 @@ ircd::m::room::server_acl::enable_read
/// This option has no effect on the room::server_acl interface itself, it is
/// available for the callsite to check independently before using the iface.
decltype(ircd::m::room::server_acl::enable_fetch)
IRCD_MODULE_EXPORT_DATA
ircd::m::room::server_acl::enable_fetch
{
{ "name", "ircd.m.room.server_acl.enable.fetch" },
@ -80,7 +77,6 @@ ircd::m::room::server_acl::enable_fetch
/// This option has no effect on the room::server_acl interface itself, it is
/// available for the callsite to check independently before using the iface.
decltype(ircd::m::room::server_acl::enable_send)
IRCD_MODULE_EXPORT_DATA
ircd::m::room::server_acl::enable_send
{
{ "name", "ircd.m.room.server_acl.enable.send" },
@ -88,7 +84,6 @@ ircd::m::room::server_acl::enable_send
};
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::check(const m::room::id &room_id,
const net::hostport &server)
try
@ -129,7 +124,6 @@ catch(const std::exception &e)
// server_acl::server_acl
//
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::server_acl(const m::room &room,
const event::idx &event_idx)
:room
@ -146,7 +140,6 @@ ircd::m::room::server_acl::server_acl(const m::room &room,
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::operator()(const net::hostport &server)
const
{
@ -168,7 +161,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::match(const string_view &prop,
const net::hostport &remote)
const
@ -194,7 +186,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::has(const string_view &prop,
const string_view &expr)
const
@ -208,7 +199,6 @@ const
}
int
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::getbool(const string_view &prop)
const
{
@ -231,7 +221,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::has(const string_view &prop)
const
{
@ -246,7 +235,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::count(const string_view &prop)
const
{
@ -262,7 +250,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::for_each(const string_view &prop,
const closure_bool &closure)
const
@ -293,7 +280,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::exists()
const
{
@ -301,7 +287,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::check(const net::hostport &server)
const
{
@ -330,7 +315,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::room::server_acl::view(const view_closure &closure)
const
{

View file

@ -15,7 +15,6 @@ namespace ircd::m
}
bool
IRCD_MODULE_EXPORT
ircd::m::visible(const m::event &event,
const string_view &mxid)
{

View file

@ -9,11 +9,9 @@
// full license for this software is available in the LICENSE file.
decltype(ircd::m::rooms::opts_default)
IRCD_MODULE_EXPORT_DATA
ircd::m::rooms::opts_default;
void
IRCD_MODULE_EXPORT
ircd::m::rooms::dump__file(const opts &opts,
const string_view &filename)
{
@ -60,7 +58,6 @@ ircd::m::rooms::dump__file(const opts &opts,
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::has(const opts &opts)
{
return !for_each(opts, []
@ -72,7 +69,6 @@ ircd::m::rooms::has(const opts &opts)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::rooms::count(const opts &opts)
{
size_t ret{0};
@ -87,14 +83,12 @@ ircd::m::rooms::count(const opts &opts)
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::for_each(const room::id::closure_bool &closure)
{
return for_each(opts_default, closure);
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::for_each(const opts &opts,
const room::id::closure_bool &closure)
{
@ -245,7 +239,6 @@ ircd::m::rooms::for_each(const opts &opts,
// ircd::m::rooms::opts::opts
//
IRCD_MODULE_EXPORT
ircd::m::rooms::opts::opts(const string_view &input)
noexcept
:room_id

View file

@ -65,7 +65,6 @@ ircd::m::rooms::summary::fetch::limit
// fetch::fetch
//
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::fetch::fetch(const string_view &origin,
const string_view &since,
const size_t &limit)
@ -126,7 +125,6 @@ ircd::m::rooms::summary::fetch::fetch(const string_view &origin,
//
void
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::del(const m::room &room)
{
for_each(room, [&room]
@ -138,7 +136,6 @@ ircd::m::rooms::summary::del(const m::room &room)
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::del(const m::room &room,
const string_view &origin)
{
@ -175,7 +172,6 @@ ircd::m::rooms::summary::del(const m::room &room,
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::set(const m::room &room)
{
if(!exists(room))
@ -199,7 +195,6 @@ ircd::m::rooms::summary::set(const m::room &room)
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::set(const m::room::id &room_id,
const string_view &origin,
const json::object &summary)
@ -220,7 +215,6 @@ ircd::m::rooms::summary::set(const m::room::id &room_id,
}
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::get(const mutable_buffer &buf,
const m::room &room)
{
@ -237,7 +231,6 @@ ircd::m::rooms::summary::get(const mutable_buffer &buf,
}
void
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::get(json::stack::object &obj,
const m::room &room)
{
@ -247,7 +240,6 @@ ircd::m::rooms::summary::get(json::stack::object &obj,
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::has(const room::id &room_id,
const string_view &origin)
{
@ -265,7 +257,6 @@ ircd::m::rooms::summary::has(const room::id &room_id,
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::for_each(const room::id &room_id,
const closure &closure)
{
@ -284,7 +275,6 @@ ircd::m::rooms::summary::for_each(const room::id &room_id,
}
bool
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::for_each(const room::id &room_id,
const closure_idx &closure)
{
@ -326,14 +316,12 @@ ircd::m::rooms::summary::for_each(const room::id &room_id,
}
std::pair<ircd::m::room::id, ircd::string_view>
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::unmake_state_key(const string_view &key)
{
return rsplit(key, '!');
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::rooms::summary::make_state_key(const mutable_buffer &buf,
const m::room::id &room_id,
const string_view &origin)

View file

@ -199,7 +199,6 @@ _handle_edu_m_typing(const m::event &event,
/// event to clients we hook it during eval and create a new event formatted
/// for clients and then run that through eval too. (see below).
///
IRCD_MODULE_EXPORT
ircd::m::typing::commit::commit(const m::typing &edu)
{
using json::at;
@ -251,7 +250,6 @@ ircd::m::typing::commit::commit(const m::typing &edu)
}
bool
IRCD_MODULE_EXPORT
ircd::m::typing::allow(const user::id &user_id,
const room::id &room_id,
const string_view &allow_type)
@ -285,7 +283,6 @@ ircd::m::typing::allow(const user::id &user_id,
}
bool
IRCD_MODULE_EXPORT
ircd::m::typing::for_each(const closure &closure)
{
// User cannot yield in their closure because the iteration

View file

@ -39,7 +39,6 @@ ircd::m::my(const user &user)
}
ircd::m::user
IRCD_MODULE_EXPORT
ircd::m::create(const m::user::id &user_id,
const json::members &contents)
{
@ -214,7 +213,6 @@ const
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::user::password(const string_view &password)
{
char buf[64];
@ -235,7 +233,6 @@ ircd::m::user::password(const string_view &password)
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::is_password(const string_view &password)
const try
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::user::account_data::set(const string_view &type,
const json::object &value)
const
@ -23,7 +22,6 @@ const
}
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::user::account_data::get(const mutable_buffer &out,
const string_view &type)
const
@ -39,7 +37,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::account_data::get(const string_view &type,
const closure &closure)
const
@ -54,7 +51,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::account_data::get(std::nothrow_t,
const string_view &type,
const closure &closure)
@ -75,7 +71,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::account_data::for_each(const closure_bool &closure)
const
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
size_t
IRCD_MODULE_EXPORT
ircd::m::user::events::count()
const
{
@ -24,7 +23,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::events::for_each(const closure_bool &closure)
const
{
@ -40,7 +38,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::events::for_each(const idx_closure_bool &closure)
const
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::user::filter::set(const mutable_buffer &buf,
const json::object &val)
const
@ -18,7 +17,6 @@ const
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::user::filter::set(const mutable_buffer &idbuf,
const m::user &user,
const json::object &filter)
@ -48,7 +46,6 @@ ircd::m::user::filter::set(const mutable_buffer &idbuf,
}
std::string
IRCD_MODULE_EXPORT
ircd::m::user::filter::get(const string_view &id)
const
{
@ -63,7 +60,6 @@ const
}
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::user::filter::get(const mutable_buffer &out,
const string_view &id)
const
@ -79,7 +75,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::filter::get(const string_view &id,
const closure &closure)
const
@ -94,7 +89,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::filter::get(std::nothrow_t,
const string_view &id,
const closure &closure)
@ -104,7 +98,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::filter::for_each(const closure_bool &closure)
const
{
@ -112,7 +105,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::filter::get(std::nothrow_t,
const m::user &user,
const string_view &filter_id,
@ -141,7 +133,6 @@ ircd::m::user::filter::get(std::nothrow_t,
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::filter::for_each(const m::user &user,
const closure_bool &closure)
{

View file

@ -14,7 +14,6 @@ namespace ircd::m
}
decltype(ircd::m::user::highlight::enable_count)
IRCD_MODULE_EXPORT_DATA
ircd::m::user::highlight::enable_count
{
{ "name", "ircd.m.user.highlight.enable.count" },
@ -22,7 +21,6 @@ ircd::m::user::highlight::enable_count
};
decltype(ircd::m::user::highlight::match_mxid_full)
IRCD_MODULE_EXPORT_DATA
ircd::m::user::highlight::match_mxid_full
{
{ "name", "ircd.m.user.highlight.match.mxid.full" },
@ -30,7 +28,6 @@ ircd::m::user::highlight::match_mxid_full
};
decltype(ircd::m::user::highlight::match_mxid_local_cs)
IRCD_MODULE_EXPORT_DATA
ircd::m::user::highlight::match_mxid_local_cs
{
{ "name", "ircd.m.user.highlight.match.mxid.local.cs" },
@ -38,7 +35,6 @@ ircd::m::user::highlight::match_mxid_local_cs
};
decltype(ircd::m::user::highlight::match_mxid_local_cs)
IRCD_MODULE_EXPORT_DATA
ircd::m::user::highlight::match_mxid_local_ci
{
{ "name", "ircd.m.user.highlight.match.mxid.local.ci" },
@ -46,7 +42,6 @@ ircd::m::user::highlight::match_mxid_local_ci
};
decltype(ircd::m::user::highlight::match_at_room)
IRCD_MODULE_EXPORT_DATA
ircd::m::user::highlight::match_at_room
{
{ "name", "ircd.m.user.highlight.match.at.room" },
@ -54,7 +49,6 @@ ircd::m::user::highlight::match_at_room
};
size_t
IRCD_MODULE_EXPORT
ircd::m::user::highlight::count()
const
{
@ -75,7 +69,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::highlight::count(const m::room &room)
const
{
@ -88,7 +81,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::highlight::count_to(const m::room &room,
const event::idx &current)
const
@ -116,7 +108,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::highlight::count_between(const m::room &room,
const event::idx_range &range)
const
@ -133,7 +124,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::for_each(const m::room &room,
const event::idx_range &range,
const event::closure_idx_bool &closure)
@ -172,7 +162,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::has(const event::idx &event_idx)
const
{
@ -199,7 +188,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::has(const event &event)
const
{
@ -220,7 +208,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::match(const string_view &text)
const
{
@ -249,7 +236,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::match(const string_view &text,
const string_view &arg)
{
@ -262,7 +248,6 @@ ircd::m::user::highlight::match(const string_view &text,
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::highlight::imatch(const string_view &text,
const string_view &arg)
{

View file

@ -29,7 +29,6 @@ ircd::m::ignored_user_list_enforce_events
};
bool
IRCD_MODULE_EXPORT
ircd::m::user::ignores::has(const m::user::id &other)
const
{
@ -41,7 +40,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::ignores::for_each(const closure_bool &closure)
const try
{
@ -78,7 +76,6 @@ catch(const std::exception &e)
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::ignores::enforce(const string_view &type)
{
if(type == "events")

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
bool
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::has(const m::user &other,
const string_view &membership)
const
@ -24,7 +23,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::count(const string_view &membership)
const
{
@ -39,7 +37,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::count(const m::user &user,
const string_view &membership)
const
@ -55,7 +52,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::for_each(const closure_bool &closure)
const
{
@ -63,7 +59,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::for_each(const string_view &membership,
const closure_bool &closure)
const
@ -109,7 +104,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::for_each(const m::user &user,
const rooms::closure_bool &closure)
const
@ -118,7 +112,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::mitsein::for_each(const m::user &user,
const string_view &membership,
const rooms::closure_bool &closure)

View file

@ -21,7 +21,6 @@ ircd::m::remote_request_timeout
};
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::user::profile::set(const string_view &key,
const string_view &val)
const
@ -38,7 +37,6 @@ const
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::user::profile::get(const mutable_buffer &out,
const string_view &key)
const
@ -54,7 +52,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::profile::get(const string_view &key,
const closure &closure)
const
@ -69,7 +66,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::profile::get(std::nothrow_t,
const string_view &key,
const closure &closure)
@ -95,7 +91,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::profile::for_each(const closure_bool &closure)
const
{
@ -121,7 +116,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::profile::fetch(const m::user &user,
const string_view &remote,
const string_view &key)

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::user::registar::operator()(const mutable_buffer &out,
const net::ipport &remote)
const
@ -192,7 +191,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::registar::validate_password(const string_view &password)
{
static const size_t &max
@ -210,7 +208,6 @@ ircd::m::user::registar::validate_password(const string_view &password)
}
void
IRCD_MODULE_EXPORT
ircd::m::user::registar::validate_user_id(const m::user::id &user_id)
{
if(user_id.host() != my_host())

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::set(const string_view &user_type,
const json::object &value)
const
@ -29,7 +28,6 @@ const
}
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::get(const mutable_buffer &out,
const string_view &type)
const
@ -45,7 +43,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::get(const string_view &type,
const closure &closure)
const
@ -61,7 +58,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::get(std::nothrow_t,
const string_view &user_type,
const closure &closure)
@ -88,7 +84,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::for_each(const closure_bool &closure)
const
{
@ -127,7 +122,6 @@ const
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::user::room_account_data::_type(const mutable_buffer &out,
const m::room::id &room_id)
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
bool
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::del(const string_view &user_type)
const
{
@ -42,7 +41,6 @@ const
}
ircd::m::event::id::buf
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::set(const string_view &user_type,
const json::object &value)
const
@ -62,7 +60,6 @@ const
}
ircd::json::object
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::get(const mutable_buffer &out,
const string_view &type)
const
@ -78,7 +75,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::get(const string_view &type,
const closure &closure)
const
@ -94,7 +90,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::get(std::nothrow_t,
const string_view &user_type,
const closure &closure)
@ -124,7 +119,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::for_each(const closure_bool &closure)
const
{
@ -163,7 +157,6 @@ const
}
ircd::string_view
IRCD_MODULE_EXPORT
ircd::m::user::room_tags::_type(const mutable_buffer &out,
const m::room::id &room_id)
{

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
size_t
IRCD_MODULE_EXPORT
ircd::m::user::rooms::count()
const
{
@ -24,7 +23,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::rooms::count(const string_view &membership)
const
{
@ -39,7 +37,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::rooms::for_each(const closure &closure)
const
{
@ -52,7 +49,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::rooms::for_each(const closure_bool &closure)
const
{
@ -60,7 +56,6 @@ const
}
void
IRCD_MODULE_EXPORT
ircd::m::user::rooms::for_each(const string_view &membership,
const closure &closure)
const
@ -74,7 +69,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::rooms::for_each(const string_view &membership,
const closure_bool &closure)
const

View file

@ -18,7 +18,6 @@ decltype(ircd::m::users::opts_default)
ircd::m::users::opts_default;
bool
IRCD_MODULE_EXPORT
ircd::m::users::exists(const opts &opts)
{
return !for_each(opts, []
@ -30,7 +29,6 @@ ircd::m::users::exists(const opts &opts)
}
size_t
IRCD_MODULE_EXPORT
ircd::m::users::count(const opts &opts)
{
size_t ret(0);
@ -44,14 +42,12 @@ ircd::m::users::count(const opts &opts)
}
bool
IRCD_MODULE_EXPORT
ircd::m::users::for_each(const user::closure_bool &closure)
{
return for_each(opts_default, closure);
}
bool
IRCD_MODULE_EXPORT
ircd::m::users::for_each(const opts &opts,
const user::closure_bool &closure)
{
@ -150,7 +146,6 @@ ircd::m::users::for_each_in_host(const opts &opts,
return ret;
}
IRCD_MODULE_EXPORT
ircd::m::users::opts::opts(const string_view &query)
{
if(startswith(query, '@') && has(query, ':'))

View file

@ -9,7 +9,6 @@
// full license for this software is available in the LICENSE file.
bool
IRCD_MODULE_EXPORT
ircd::m::user::servers::has(const string_view &server,
const string_view &membership)
const
@ -24,7 +23,6 @@ const
}
size_t
IRCD_MODULE_EXPORT
ircd::m::user::servers::count(const string_view &membership)
const
{
@ -40,7 +38,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::servers::for_each(const closure_bool &closure)
const
{
@ -48,7 +45,6 @@ const
}
bool
IRCD_MODULE_EXPORT
ircd::m::user::servers::for_each(const string_view &membership,
const closure_bool &closure)
const

View file

@ -113,7 +113,6 @@ ircd::m::vm::effect_hook
//
ircd::m::vm::fault
IRCD_MODULE_EXPORT
ircd::m::vm::execute(eval &eval,
const event &event)
try

View file

@ -33,7 +33,6 @@ namespace ircd::m::vm
///
ircd::m::vm::fault
IRCD_MODULE_EXPORT
ircd::m::vm::inject(eval &eval,
json::iov &event,
const json::iov &contents)