0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-02 18:18:56 +02:00
construct/include/ircd/m/m.h

108 lines
2.1 KiB
C
Raw Normal View History

2018-02-04 03:22:01 +01:00
// Matrix Construct
//
// Copyright (C) Matrix Construct Developers, Authors & Contributors
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
#pragma once
#define HAVE_IRCD_M_H
// required for clang to consider string_view operators inherited by
// m::id among other import disambiguations.
#ifdef __clang__
namespace ircd::m
{
using std::operator==;
using std::operator!=;
using std::operator<;
using ircd::operator!;
using ircd::json::at;
using ircd::json::get;
}
#endif
// explicit imports required for GCC or clang
namespace ircd::m
{
2018-03-28 22:05:15 +02:00
using ircd::hash;
}
/// Matrix Protocol System
namespace ircd::m
{
struct init;
2018-08-15 01:47:42 +02:00
IRCD_OVERLOAD(generate)
extern struct log::log log;
}
#include "name.h"
#include "error.h"
2018-08-15 01:47:42 +02:00
#include "self.h"
#include "id.h"
#include "event/event.h"
#include "get.h"
#include "query.h"
#include "dbs/dbs.h"
#include "vm.h"
#include "invite_3pid.h"
#include "createroom.h"
#include "room/room.h"
#include "user/user.h"
#include "users.h"
#include "rooms.h"
#include "filter.h"
#include "events.h"
#include "node.h"
#include "login.h"
#include "register.h"
2019-02-07 11:35:29 +01:00
#include "device.h"
#include "request.h"
#include "v1/v1.h"
#include "keys.h"
#include "edu.h"
#include "presence.h"
#include "typing.h"
#include "receipt.h"
#include "direct_to_device.h"
#include "txn.h"
2018-02-26 08:24:12 +01:00
#include "hook.h"
#include "visible.h"
#include "feds.h"
#include "app.h"
#include "sync.h"
#include "fetch.h"
#include "breadcrumb_rooms.h"
struct ircd::m::init
{
2018-09-21 23:59:58 +02:00
struct modules;
self::init _self;
dbs::init _dbs;
2018-09-21 23:59:58 +02:00
std::unique_ptr<modules> _modules;
static void bootstrap();
void close();
public:
init(const string_view &origin, const string_view &hostname);
~init() noexcept;
};
2018-09-21 23:59:58 +02:00
struct ircd::m::init::modules
{
void fini_imports() noexcept;
2018-09-21 23:59:58 +02:00
void init_imports();
void init_keys();
public:
2018-09-21 23:59:58 +02:00
modules();
~modules() noexcept;
};