src.ctf.fs: remove ctf_fs_file_create
[babeltrace.git] / src / plugins / ctf / fs-src / file.hpp
... / ...
CommitLineData
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2016 Philippe Proulx <pproulx@efficios.com>
5 */
6
7#ifndef CTF_FS_FILE_H
8#define CTF_FS_FILE_H
9
10#include <memory>
11#include <string>
12
13#include <babeltrace2/babeltrace.h>
14
15#include "cpp-common/bt2c/libc-up.hpp"
16#include "cpp-common/bt2c/logging.hpp"
17
18struct ctf_fs_file
19{
20 using UP = std::unique_ptr<ctf_fs_file>;
21
22 explicit ctf_fs_file(const bt2c::Logger& parentLogger) :
23 logger {parentLogger, "PLUGIN/SRC.CTF.FS/FILE"}
24 {
25 }
26
27 bt2c::Logger logger;
28
29 std::string path;
30
31 bt2c::FileUP fp;
32
33 off_t size = 0;
34};
35
36int ctf_fs_file_open(struct ctf_fs_file *file, const char *mode);
37
38#endif /* CTF_FS_FILE_H */
This page took 0.022662 seconds and 4 git commands to generate.