0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-26 05:48:20 +02:00

ircd:Ⓜ️ Fix event::idx argument typing in events:: iterations.

This commit is contained in:
Jason Volk 2018-05-14 21:45:33 -07:00
parent a7b0246830
commit 8fefae157a
2 changed files with 12 additions and 12 deletions

View file

@ -17,12 +17,12 @@ namespace ircd::m::events
using closure_bool = std::function<bool (const event::idx &, const event &)>;
// counts up from start
bool for_each(const uint64_t &start, const id_closure_bool &);
bool for_each(const uint64_t &start, const closure_bool &);
bool for_each(const uint64_t &start, const event_filter &, const closure_bool &);
bool for_each(const event::idx &start, const id_closure_bool &);
bool for_each(const event::idx &start, const closure_bool &);
bool for_each(const event::idx &start, const event_filter &, const closure_bool &);
// -1 starts at newest event; counts down
bool rfor_each(const uint64_t &start, const id_closure_bool &);
bool rfor_each(const uint64_t &start, const closure_bool &);
bool rfor_each(const uint64_t &start, const event_filter &, const closure_bool &);
bool rfor_each(const event::idx &start, const id_closure_bool &);
bool rfor_each(const event::idx &start, const closure_bool &);
bool rfor_each(const event::idx &start, const event_filter &, const closure_bool &);
}

View file

@ -1296,7 +1296,7 @@ ircd::m::node::room::room(const m::node &node)
//
bool
ircd::m::events::rfor_each(const uint64_t &start,
ircd::m::events::rfor_each(const event::idx &start,
const event_filter &filter,
const closure_bool &closure)
{
@ -1320,7 +1320,7 @@ ircd::m::events::rfor_each(const uint64_t &start,
}
bool
ircd::m::events::rfor_each(const uint64_t &start,
ircd::m::events::rfor_each(const event::idx &start,
const closure_bool &closure)
{
event::fetch event;
@ -1335,7 +1335,7 @@ ircd::m::events::rfor_each(const uint64_t &start,
}
bool
ircd::m::events::rfor_each(const uint64_t &start,
ircd::m::events::rfor_each(const event::idx &start,
const id_closure_bool &closure)
{
static constexpr auto column_idx
@ -1370,7 +1370,7 @@ ircd::m::events::rfor_each(const uint64_t &start,
}
bool
ircd::m::events::for_each(const uint64_t &start,
ircd::m::events::for_each(const event::idx &start,
const event_filter &filter,
const closure_bool &closure)
{
@ -1394,7 +1394,7 @@ ircd::m::events::for_each(const uint64_t &start,
}
bool
ircd::m::events::for_each(const uint64_t &start,
ircd::m::events::for_each(const event::idx &start,
const closure_bool &closure)
{
event::fetch event;
@ -1409,7 +1409,7 @@ ircd::m::events::for_each(const uint64_t &start,
}
bool
ircd::m::events::for_each(const uint64_t &start,
ircd::m::events::for_each(const event::idx &start,
const id_closure_bool &closure)
{
static constexpr auto column_idx