This helps resolve some cyclic include problem between file.hpp and
fs.hpp in the next patches (and I think it makes sense to put it there).
Change-Id: I2904d17eb3ea51699464fba17a992ddf3b691f60
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8259
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12297
#include "cpp-common/vendor/fmt/format.h"
#include "file.hpp"
-#include "fs.hpp"
void ctf_fs_file_destroy(struct ctf_fs_file *file)
{
#include <babeltrace2/babeltrace.h>
-namespace bt2c {
+#include "cpp-common/bt2c/logging.hpp"
-class Logger;
+struct ctf_fs_file
+{
+ explicit ctf_fs_file(const bt2c::Logger& parentLogger) :
+ logger {parentLogger, "PLUGIN/SRC.CTF.FS/FILE"}
+ {
+ }
-} /* namespace bt2c */
+ bt2c::Logger logger;
+
+ /* Owned by this */
+ GString *path = nullptr;
+
+ /* Owned by this */
+ FILE *fp = nullptr;
+
+ off_t size = 0;
+};
void ctf_fs_file_destroy(struct ctf_fs_file *file);
extern bool ctf_fs_debug;
-struct ctf_fs_file
-{
- explicit ctf_fs_file(const bt2c::Logger& parentLogger) :
- logger {parentLogger, "PLUGIN/SRC.CTF.FS/FILE"}
- {
- }
-
- bt2c::Logger logger;
-
- /* Owned by this */
- GString *path = nullptr;
-
- /* Owned by this */
- FILE *fp = nullptr;
-
- off_t size = 0;
-};
-
struct ctf_fs_metadata
{
/* Owned by this */