mirror of
https://github.com/matrix-construct/construct
synced 2025-01-16 09:36:54 +01:00
ircd:Ⓜ️:event: Checkpoint invoke; minor cleanup.
This commit is contained in:
parent
fe25959658
commit
238c7ee8d9
1 changed files with 21 additions and 14 deletions
|
@ -1132,19 +1132,6 @@ ircd::m::is_power_event(const m::event &event)
|
||||||
// event::auth::chain
|
// event::auth::chain
|
||||||
//
|
//
|
||||||
|
|
||||||
void
|
|
||||||
ircd::m::event::auth::rebuild()
|
|
||||||
{
|
|
||||||
using prototype = void ();
|
|
||||||
|
|
||||||
static mods::import<prototype> rebuild
|
|
||||||
{
|
|
||||||
"m_event", "ircd::m::event::auth::rebuild"
|
|
||||||
};
|
|
||||||
|
|
||||||
rebuild();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
ircd::m::event::auth::chain::for_each(const closure &closure)
|
ircd::m::event::auth::chain::for_each(const closure &closure)
|
||||||
const
|
const
|
||||||
|
@ -1164,13 +1151,33 @@ const
|
||||||
"m_event", "ircd::m::event::auth::chain::for_each"
|
"m_event", "ircd::m::event::auth::chain::for_each"
|
||||||
};
|
};
|
||||||
|
|
||||||
return (*this.**call)(type, c);
|
//TODO: make this work (no pun intended)
|
||||||
|
//return call(this, type, c);
|
||||||
|
|
||||||
|
if(!call) call.reload();
|
||||||
|
const void *const v(call.get());
|
||||||
|
const prototype mfp(*reinterpret_cast<const prototype *>(&v));
|
||||||
|
const chain *const volatile that(this);
|
||||||
|
return std::invoke(mfp, that, type, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// event::auth
|
// event::auth
|
||||||
//
|
//
|
||||||
|
|
||||||
|
void
|
||||||
|
ircd::m::event::auth::rebuild()
|
||||||
|
{
|
||||||
|
using prototype = void ();
|
||||||
|
|
||||||
|
static mods::import<prototype> rebuild
|
||||||
|
{
|
||||||
|
"m_event", "ircd::m::event::auth::rebuild"
|
||||||
|
};
|
||||||
|
|
||||||
|
rebuild();
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
ircd::m::event::auth::count()
|
ircd::m::event::auth::count()
|
||||||
const noexcept
|
const noexcept
|
||||||
|
|
Loading…
Reference in a new issue