0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01: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 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 bool
ircd::m::exists(const user::id &user_id) 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 // copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file. // full license for this software is available in the LICENSE file.
using namespace ircd::m; ircd::mapi::header
using namespace ircd;
mapi::header
IRCD_MODULE IRCD_MODULE
{ {
"Matrix user library; modular components." "Matrix user library; modular components."
}; };
extern "C" m::user ircd::m::user
user_create(const m::user::id &user_id, ircd::m::create(const m::user::id &user_id,
const json::members &contents) const json::members &contents)
{ {
const m::user user const m::user user
{ {