mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
modules/m_rooms: Update module linkage of rooms::for_each().
This commit is contained in:
parent
6ff3c88fa4
commit
5782f2a5f5
2 changed files with 6 additions and 6 deletions
|
@ -2738,12 +2738,12 @@ ircd::m::rooms::for_each(const string_view &room_id_lb,
|
|||
{
|
||||
using prototype = bool (const string_view &, const room::id::closure_bool &);
|
||||
|
||||
static mods::import<prototype> function
|
||||
static mods::import<prototype> call
|
||||
{
|
||||
"m_rooms", "_for_each"
|
||||
"m_rooms", "ircd::m::rooms::for_each"
|
||||
};
|
||||
|
||||
return function(room_id_lb, closure);
|
||||
return call(room_id_lb, closure);
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -24,7 +24,6 @@ namespace ircd::m::rooms
|
|||
extern "C" void _summary_chunk(const m::room &room, json::stack::object &obj);
|
||||
extern "C" size_t _count_public(const string_view &server);
|
||||
extern "C" bool _for_each_public(const string_view &room_id_lb, const room::id::closure_bool &);
|
||||
extern "C" bool _for_each(const string_view &room_id_lb, const room::id::closure_bool &);
|
||||
static void create_public_room(const m::event &, m::vm::eval &);
|
||||
|
||||
extern m::hookfn<vm::eval &> create_public_room_hook;
|
||||
|
@ -65,8 +64,9 @@ ircd::m::rooms::create_public_room(const m::event &,
|
|||
}
|
||||
|
||||
bool
|
||||
ircd::m::rooms::_for_each(const string_view &room_id_lb,
|
||||
const room::id::closure_bool &closure)
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::rooms::for_each(const string_view &room_id_lb,
|
||||
const room::id::closure_bool &closure)
|
||||
{
|
||||
const room::state state
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue