mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd:Ⓜ️:vm: Give eval the instance_list.
This commit is contained in:
parent
671053de74
commit
820284f2d0
2 changed files with 11 additions and 0 deletions
|
@ -50,6 +50,7 @@ struct ircd::m::vm::init
|
|||
/// transitions or actions of the machine etc.
|
||||
///
|
||||
struct ircd::m::vm::eval
|
||||
:instance_list<eval>
|
||||
{
|
||||
const vm::opts *opts {&default_opts};
|
||||
const vm::copts *copts {nullptr};
|
||||
|
|
10
ircd/m/vm.cc
10
ircd/m/vm.cc
|
@ -100,6 +100,16 @@ ircd::m::vm::notify_hook
|
|||
{ "name", "vm.notify" }
|
||||
};
|
||||
|
||||
/// Instance list linkage for all of the evaluations.
|
||||
template<>
|
||||
decltype(ircd::util::instance_list<ircd::m::vm::eval>::list)
|
||||
ircd::util::instance_list<ircd::m::vm::eval>::list
|
||||
{};
|
||||
|
||||
//
|
||||
// eval::eval
|
||||
//
|
||||
|
||||
ircd::m::vm::eval::eval(const room &room,
|
||||
json::iov &event,
|
||||
const json::iov &content)
|
||||
|
|
Loading…
Reference in a new issue