mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
ircd:Ⓜ️ Various cleanup; toward demangled linkage; mark size indicating stack use.
This commit is contained in:
parent
547c6ca8e5
commit
a380186001
3 changed files with 26 additions and 24 deletions
14
ircd/m.cc
14
ircd/m.cc
|
@ -3285,7 +3285,7 @@ ircd::m::send(const room &room,
|
|||
};
|
||||
|
||||
json::iov _content;
|
||||
json::iov::push content[contents_count];
|
||||
json::iov::push content[contents_count]; // 48B each
|
||||
return send(room, sender, type, state_key, make_iov(_content, content, contents_count, contents));
|
||||
}
|
||||
|
||||
|
@ -3302,7 +3302,7 @@ ircd::m::send(const room &room,
|
|||
};
|
||||
|
||||
json::iov _content;
|
||||
json::iov::push content[contents_count];
|
||||
json::iov::push content[contents_count]; // 48B each
|
||||
return send(room, sender, type, state_key, make_iov(_content, content, contents_count, contents));
|
||||
}
|
||||
|
||||
|
@ -3317,7 +3317,7 @@ ircd::m::send(const room &room,
|
|||
|
||||
static mods::import<prototype> function
|
||||
{
|
||||
"m_room", "state__iov"
|
||||
"m_room", "ircd::m::send"
|
||||
};
|
||||
|
||||
return function(room, sender, type, state_key, content);
|
||||
|
@ -3335,7 +3335,7 @@ ircd::m::send(const room &room,
|
|||
};
|
||||
|
||||
json::iov _content;
|
||||
json::iov::push content[contents_count];
|
||||
json::iov::push content[contents_count]; // 48B each
|
||||
return send(room, sender, type, make_iov(_content, content, contents_count, contents));
|
||||
}
|
||||
|
||||
|
@ -3351,13 +3351,13 @@ ircd::m::send(const room &room,
|
|||
};
|
||||
|
||||
json::iov _content;
|
||||
json::iov::push content[contents_count];
|
||||
json::iov::push content[contents_count]; // 48B each
|
||||
return send(room, sender, type, make_iov(_content, content, contents_count, contents));
|
||||
}
|
||||
|
||||
ircd::m::event::id::buf
|
||||
ircd::m::send(const room &room,
|
||||
const m::id::user &sender,
|
||||
const id::user &sender,
|
||||
const string_view &type,
|
||||
const json::iov &content)
|
||||
{
|
||||
|
@ -3365,7 +3365,7 @@ ircd::m::send(const room &room,
|
|||
|
||||
static mods::import<prototype> function
|
||||
{
|
||||
"m_room", "send__iov"
|
||||
"m_room", "ircd::m::send"
|
||||
};
|
||||
|
||||
return function(room, sender, type, content);
|
||||
|
|
|
@ -59,11 +59,6 @@ get__event_auth(client &client,
|
|||
url::decode(event_id, request.parv[1])
|
||||
};
|
||||
|
||||
const m::event::idx event_idx
|
||||
{
|
||||
m::index(event_id) // throws m::NOT_FOUND
|
||||
};
|
||||
|
||||
const m::room room
|
||||
{
|
||||
room_id, event_id
|
||||
|
@ -96,7 +91,12 @@ get__event_auth(client &client,
|
|||
auth_chain_m
|
||||
};
|
||||
|
||||
m::event::auth::chain(event_idx).for_each([&auth_chain]
|
||||
const m::event::auth::chain chain
|
||||
{
|
||||
m::index(event_id)
|
||||
};
|
||||
|
||||
chain.for_each([&auth_chain]
|
||||
(const m::event::idx &event_idx, const m::event &event)
|
||||
{
|
||||
auth_chain.append(event);
|
||||
|
|
|
@ -16,11 +16,12 @@ IRCD_MODULE
|
|||
"Matrix room library; modular components."
|
||||
};
|
||||
|
||||
extern "C" m::event::id::buf
|
||||
send__iov(const m::room &room,
|
||||
const m::id::user &sender,
|
||||
const string_view &type,
|
||||
const json::iov &content)
|
||||
ircd::m::event::id::buf
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::send(const m::room &room,
|
||||
const m::id::user &sender,
|
||||
const string_view &type,
|
||||
const json::iov &content)
|
||||
{
|
||||
json::iov event;
|
||||
const json::iov::push push[]
|
||||
|
@ -32,12 +33,13 @@ send__iov(const m::room &room,
|
|||
return commit(room, event, content);
|
||||
}
|
||||
|
||||
extern "C" m::event::id::buf
|
||||
state__iov(const m::room &room,
|
||||
const m::id::user &sender,
|
||||
const string_view &type,
|
||||
const string_view &state_key,
|
||||
const json::iov &content)
|
||||
m::event::id::buf
|
||||
IRCD_MODULE_EXPORT
|
||||
ircd::m::send(const m::room &room,
|
||||
const m::id::user &sender,
|
||||
const string_view &type,
|
||||
const string_view &state_key,
|
||||
const json::iov &content)
|
||||
{
|
||||
json::iov event;
|
||||
const json::iov::push push[]
|
||||
|
|
Loading…
Reference in a new issue