mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/m_user: Simplify linkage. #83
This commit is contained in:
parent
05711cf5d6
commit
d61850ecf6
2 changed files with 4 additions and 21 deletions
14
ircd/m.cc
14
ircd/m.cc
|
@ -2786,20 +2786,6 @@ ircd::m::user::tokens
|
|||
tokens_room_id
|
||||
};
|
||||
|
||||
ircd::m::user
|
||||
ircd::m::create(const id::user &user_id,
|
||||
const json::members &contents)
|
||||
{
|
||||
using prototype = user (const id::user &, const json::members &);
|
||||
|
||||
static mods::import<prototype> function
|
||||
{
|
||||
"m_user", "user_create"
|
||||
};
|
||||
|
||||
return function(user_id, contents);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::exists(const user::id &user_id)
|
||||
{
|
||||
|
|
|
@ -8,18 +8,15 @@
|
|||
// copyright notice and this permission notice is present in all copies. The
|
||||
// full license for this software is available in the LICENSE file.
|
||||
|
||||
using namespace ircd::m;
|
||||
using namespace ircd;
|
||||
|
||||
mapi::header
|
||||
ircd::mapi::header
|
||||
IRCD_MODULE
|
||||
{
|
||||
"Matrix user library; modular components."
|
||||
};
|
||||
|
||||
extern "C" m::user
|
||||
user_create(const m::user::id &user_id,
|
||||
const json::members &contents)
|
||||
ircd::m::user
|
||||
ircd::m::create(const m::user::id &user_id,
|
||||
const json::members &contents)
|
||||
{
|
||||
const m::user user
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue