2018-04-10 04:38:41 +02: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_ROOMS_H
|
|
|
|
|
|
|
|
/// Convenience iterface for iterations of rooms
|
|
|
|
///
|
|
|
|
namespace ircd::m::rooms
|
|
|
|
{
|
2018-04-12 00:10:45 +02:00
|
|
|
// All rooms known to IRCd
|
2018-04-10 04:38:41 +02:00
|
|
|
void for_each(const room::id::closure_bool &);
|
|
|
|
void for_each(const room::id::closure &);
|
|
|
|
void for_each(const room::closure_bool &);
|
|
|
|
void for_each(const room::closure &);
|
2018-04-12 00:10:45 +02:00
|
|
|
|
|
|
|
// All rooms for a user (alias to interface in user::)
|
2018-04-12 00:28:00 +02:00
|
|
|
void for_each(const user &, const string_view &membership, const user::rooms::closure_bool &);
|
|
|
|
void for_each(const user &, const string_view &membership, const user::rooms::closure &);
|
|
|
|
void for_each(const user &, const user::rooms::closure_bool &);
|
|
|
|
void for_each(const user &, const user::rooms::closure &);
|
2018-04-10 04:38:41 +02:00
|
|
|
}
|