2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2016 Philippe Proulx <pproulx@efficios.com>
13 #include <babeltrace2/babeltrace.h>
15 #include "cpp-common/bt2c/libc-up.hpp"
16 #include "cpp-common/bt2c/logging.hpp"
18 struct ctf_fs_file_deleter
20 void operator()(struct ctf_fs_file *file) noexcept;
25 using UP = std::unique_ptr<ctf_fs_file, ctf_fs_file_deleter>;
27 explicit ctf_fs_file(const bt2c::Logger& parentLogger) :
28 logger {parentLogger, "PLUGIN/SRC.CTF.FS/FILE"}
41 void ctf_fs_file_destroy(struct ctf_fs_file *file);
43 ctf_fs_file::UP ctf_fs_file_create(const bt2c::Logger& parentLogger);
45 int ctf_fs_file_open(struct ctf_fs_file *file, const char *mode);
47 #endif /* CTF_FS_FILE_H */