mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
236 lines
6.2 KiB
C
236 lines
6.2 KiB
C
// 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.
|
|
|
|
extern ircd::m::resource rooms_resource;
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// event.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__event(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// messages.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__messages(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// state.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__state(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
ircd::m::resource::response
|
|
put__state(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// members.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__members(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
ircd::m::resource::response
|
|
get__joined_members(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// context.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__context(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// send.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
put__send(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// typing.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
put__typing(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// redact.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
put__redact(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
ircd::m::resource::response
|
|
post__redact(ircd::client &client,
|
|
const ircd::m::resource::request &request,
|
|
const ircd::m::room::id &room_id);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// receipt.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__receipt(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// join.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__join(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// invite.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__invite(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// leave.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__leave(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// forget.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__forget(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// kick.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__kick(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// ban.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__ban(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// unban.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__unban(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// read_markers.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__read_markers(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// initialsync.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__initialsync(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// report.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__report(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// relations.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
get__relations(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// upgrade.cc
|
|
//
|
|
|
|
ircd::m::resource::response
|
|
post__upgrade(ircd::client &,
|
|
const ircd::m::resource::request &,
|
|
const ircd::m::room::id &);
|