mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 23:10:54 +01:00
31 lines
985 B
C++
31 lines
985 B
C++
// Matrix Construct
|
|
//
|
|
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
|
// Copyright (C) 2016-2021 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_GPT_PIPE_CODE_H
|
|
|
|
/// Pipe code segment.
|
|
struct ircd::gpt::pipe::code
|
|
:cl::code
|
|
{
|
|
static conf::item<std::string> default_path;
|
|
static conf::item<std::string> default_opts;
|
|
static conf::item<std::string> cache_path;
|
|
|
|
static string_view make_cache_path(const mutable_buffer &);
|
|
static cl::code from_cache(const string_view &opts, const string_view &path);
|
|
static cl::code from_source(const string_view &opts);
|
|
|
|
void set_cache(const string_view &path);
|
|
bool put_cache();
|
|
|
|
code();
|
|
~code() noexcept;
|
|
};
|