2019-07-24 00:37:32 +02:00
|
|
|
// Matrix Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
|
|
// Copyright (C) 2016-2019 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_ROOM_BOOTSTRAP_H
|
|
|
|
|
|
|
|
struct ircd::m::room::bootstrap
|
|
|
|
{
|
2020-04-22 02:58:32 +02:00
|
|
|
static bool required(const id &);
|
|
|
|
|
2019-07-24 00:37:32 +02:00
|
|
|
// restrap: synchronous; send_join
|
2020-03-20 20:04:19 +01:00
|
|
|
bootstrap(const event &, const string_view &host, const string_view &room_version = {});
|
2019-07-24 00:37:32 +02:00
|
|
|
|
|
|
|
// restrap: asynchronous; launch ctx; send_join
|
2020-03-20 20:04:19 +01:00
|
|
|
bootstrap(const event::id &, const string_view &host, const string_view &room_version = {});
|
2019-07-24 00:37:32 +02:00
|
|
|
|
|
|
|
// synchronous make_join, eval; asynchronous send_join
|
2020-04-22 02:58:32 +02:00
|
|
|
bootstrap(event::id::buf &, const room::id &, const m::id::user &, const vector_view<const string_view> &hosts);
|
2019-07-24 00:37:32 +02:00
|
|
|
};
|