// Matrix Construct // // Copyright (C) Matrix Construct Developers, Authors & Contributors // Copyright (C) 2016-2021 Jason Volk // // 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 default_path; static conf::item default_opts; static conf::item 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; };