mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
ircd:Ⓜ️ Fix count_since prototype; upgrade definition.
This commit is contained in:
parent
af6ac4a2ac
commit
7bcc40f13f
2 changed files with 11 additions and 10 deletions
|
@ -3753,16 +3753,16 @@ ircd::m::count_since(const room &r,
|
|||
const event::idx &a,
|
||||
const event::idx &b)
|
||||
{
|
||||
using prototype = bool (const room &,
|
||||
using prototype = size_t (const room &,
|
||||
const event::idx &,
|
||||
const event::idx &);
|
||||
|
||||
static mods::import<prototype> _count_since
|
||||
static mods::import<prototype> call
|
||||
{
|
||||
"m_room", "count_since"
|
||||
"m_room", "ircd::m::count_since"
|
||||
};
|
||||
|
||||
return _count_since(r, std::min(a, b), std::max(a, b));
|
||||
return call(r, std::min(a, b), std::max(a, b));
|
||||
}
|
||||
|
||||
ircd::m::id::room::buf
|
||||
|
|
|
@ -52,8 +52,9 @@ ircd::m::send(const m::room &room,
|
|||
return commit(room, event, content);
|
||||
}
|
||||
|
||||
extern "C" size_t
|
||||
count_since(const m::room &room,
|
||||
size_t
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::count_since(const m::room &room,
|
||||
const m::event::idx &a,
|
||||
const m::event::idx &b)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue