0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

modules/m_user: Simplify linkage. #83

This commit is contained in:
Jason Volk 2019-07-15 10:09:26 -07:00
parent 05711cf5d6
commit d61850ecf6
2 changed files with 4 additions and 21 deletions

View file

@ -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)
{

View file

@ -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
{