0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 00:02:34 +01:00

modules: Fix various hookfn instance constness.

This commit is contained in:
Jason Volk 2019-08-09 21:27:12 -07:00
parent 6d4acdd01a
commit ab8771aae3
15 changed files with 21 additions and 21 deletions

View file

@ -15,7 +15,7 @@ namespace ircd::m
static event::id::buf invite_foreign(const event &);
static void on_invite_foreign(const event &, vm::eval &);
extern const hookfn<vm::eval &> invite_foreign_hook;
extern hookfn<vm::eval &> invite_foreign_hook;
}
decltype(ircd::m::invite_foreign_hook)

View file

@ -180,7 +180,7 @@ handle_conf_updated(const m::event &event,
conf_updated(event);
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
conf_updated_hook
{
handle_conf_updated,
@ -244,7 +244,7 @@ handle_init_conf_items(const m::event &,
init_conf_items();
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
init_conf_items_hook
{
handle_init_conf_items,
@ -290,7 +290,7 @@ create_conf_room(const m::event &,
rehash_conf({}, true);
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
create_conf_room_hook
{
create_conf_room,

View file

@ -28,7 +28,7 @@ static void
handle_command(const m::event &event,
m::vm::eval &eval);
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
command_hook
{
handle_command,

View file

@ -108,7 +108,7 @@ catch(const std::exception &e)
notice(control_room, e.what());
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
command_control_hook
{
command_control,
@ -138,7 +138,7 @@ create_control_room(const m::event &,
notice(control_room, m::me.user_id, "I am the daemon. You can talk to me in this room by highlighting me.");
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
create_control_hook
{
create_control_room,

View file

@ -20,7 +20,7 @@ static void
handle_edu_m_device_list_update(const m::event &,
m::vm::eval &);
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_m_device_list_update_eval
{
handle_edu_m_device_list_update,

View file

@ -20,7 +20,7 @@ static void
_join_room__m_direct(const m::event &event,
m::vm::eval &eval);
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_join_room__m_direct_hookfn
{
{

View file

@ -34,7 +34,7 @@ enforce_events
};
/*
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_m_ignored_user_list
{
handle_m_ignored_user_list,

View file

@ -130,7 +130,7 @@ create_listener(const m::event &event,
}
/// Hook for a new listener description being sent.
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
create_listener_hook
{
create_listener,

View file

@ -11,17 +11,17 @@
using namespace ircd;
static void handle_ircd_m_read(const m::event &, m::vm::eval &);
extern const m::hookfn<m::vm::eval &> _ircd_read_eval;
extern m::hookfn<m::vm::eval &> _ircd_read_eval;
static void handle_implicit_receipt(const m::event &, m::vm::eval &);
extern const m::hookfn<m::vm::eval &> _implicit_receipt;
extern m::hookfn<m::vm::eval &> _implicit_receipt;
static void handle_m_receipt_m_read(const m::room::id &, const m::user::id &, const m::event::id &, const time_t &);
static void handle_m_receipt_m_read(const m::room::id &, const m::user::id &, const m::edu::m_receipt::m_read &);
static void handle_m_receipt_m_read(const m::event &, const m::room::id &, const json::object &);
static void handle_m_receipt(const m::event &, const m::room::id &, const json::object &);
static void handle_edu_m_receipt(const m::event &, m::vm::eval &);
extern const m::hookfn<m::vm::eval &> _m_receipt_eval;
extern m::hookfn<m::vm::eval &> _m_receipt_eval;
mapi::header
IRCD_MODULE

View file

@ -14,7 +14,7 @@ namespace ircd::m
extern const room alias_room;
extern const room::id::buf alias_room_id;
extern const hookfn<vm::eval &> changed_canonical_alias_hookfn;
extern hookfn<vm::eval &> changed_canonical_alias_hookfn;
}
ircd::mapi::header

View file

@ -164,7 +164,7 @@ _changed_visibility(const m::event &event,
};
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_changed_visibility_hookfn
{
_changed_visibility,

View file

@ -45,7 +45,7 @@ _changed_rules(const m::event &event,
m::rooms::summary_set(room_id, json::object{});
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_changed_rules_hookfn
{
_changed_rules,
@ -69,7 +69,7 @@ _changed_rules_notify(const m::event &event,
};
}
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_changed_rules_notify_hookfn
{
_changed_rules_notify,

View file

@ -130,7 +130,7 @@ static void handle_edu_m_typing(const m::event &, m::vm::eval &);
/// a new event formatted for client /sync and then runs that through eval
/// so our clients can receive the typing events.
///
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
_m_typing_eval
{
handle_edu_m_typing,

View file

@ -22,7 +22,7 @@ IRCD_MODULE
"Matrix user profiles."
};
const m::hookfn<m::vm::eval &>
m::hookfn<m::vm::eval &>
my_profile_changed
{
handle_my_profile_changed,

View file

@ -905,7 +905,7 @@ namespace ircd::net::dns::cache
static void create_room();
extern bool room_exists;
extern const m::hookfn<m::vm::eval &> create_room_hook;
extern m::hookfn<m::vm::eval &> create_room_hook;
extern const ircd::run::changed create_room_hook_alt;
}