mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
ircd:Ⓜ️ Add developer convenience constructor to event_filter.
This commit is contained in:
parent
328292ba0e
commit
e57b85cb36
2 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,8 @@ struct ircd::m::event_filter
|
|||
>
|
||||
{
|
||||
using super_type::tuple;
|
||||
event_filter(const mutable_buffer &, const json::members &);
|
||||
event_filter() = default;
|
||||
using super_type::operator=;
|
||||
};
|
||||
|
||||
|
|
|
@ -156,3 +156,12 @@ ircd::m::filter::get(std::nothrow_t,
|
|||
closure(content);
|
||||
});
|
||||
}
|
||||
|
||||
ircd::m::event_filter::event_filter(const mutable_buffer &buf,
|
||||
const json::members &members)
|
||||
:super_type::tuple
|
||||
{
|
||||
json::stringify(mutable_buffer{buf}, members)
|
||||
}
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue