2018-03-08 21:38:02 +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.
|
|
|
|
|
|
|
|
using namespace ircd;
|
|
|
|
|
2018-04-25 02:41:51 +02:00
|
|
|
extern "C" m::room::id
|
|
|
|
file_room_id(m::room::id::buf &out,
|
|
|
|
const string_view &server,
|
|
|
|
const string_view &file);
|
|
|
|
|
|
|
|
m::room::id::buf
|
|
|
|
file_room_id(const string_view &server,
|
|
|
|
const string_view &file);
|
2018-04-13 00:58:30 +02:00
|
|
|
|
|
|
|
size_t read_each_block(const m::room &, const std::function<void (const string_view &)> &);
|
|
|
|
size_t write_file(const m::room &room, const string_view &content, const string_view &content_type);
|