0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd:Ⓜ️ Fix count_since prototype; upgrade definition.

This commit is contained in:
Jason Volk 2019-02-28 14:01:27 -08:00
parent af6ac4a2ac
commit 7bcc40f13f
2 changed files with 11 additions and 10 deletions

View file

@ -3753,16 +3753,16 @@ ircd::m::count_since(const room &r,
const event::idx &a, const event::idx &a,
const event::idx &b) const event::idx &b)
{ {
using prototype = bool (const room &, using prototype = size_t (const room &,
const event::idx &, const event::idx &,
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 ircd::m::id::room::buf

View file

@ -52,10 +52,11 @@ ircd::m::send(const m::room &room,
return commit(room, event, content); return commit(room, event, content);
} }
extern "C" size_t size_t
count_since(const m::room &room, IRCD_MODULE_EXPORT
const m::event::idx &a, ircd::m::count_since(const m::room &room,
const m::event::idx &b) const m::event::idx &a,
const m::event::idx &b)
{ {
m::room::messages it m::room::messages it
{ {