ctf.fs: split streams, one per port
[babeltrace.git] / plugins / ctf / fs / file.c
index 54b11a67013d2c16a0474c0a30c436873d7bd996..8b756496a9d82064981ce1351db6efd34b3ede1e 100644 (file)
 
 #include "file.h"
 
+BT_HIDDEN
 void ctf_fs_file_destroy(struct ctf_fs_file *file)
 {
-       struct ctf_fs_component *ctf_fs = file->ctf_fs;
+       struct ctf_fs_component *ctf_fs;;
 
        if (!file) {
                return;
        }
 
+       ctf_fs = file->ctf_fs;
+
        if (file->fp) {
                PDBG("Closing file \"%s\" (%p)\n", file->path->str, file->fp);
 
@@ -56,6 +59,7 @@ void ctf_fs_file_destroy(struct ctf_fs_file *file)
        g_free(file);
 }
 
+BT_HIDDEN
 struct ctf_fs_file *ctf_fs_file_create(struct ctf_fs_component *ctf_fs)
 {
        struct ctf_fs_file *file = g_new0(struct ctf_fs_file, 1);
@@ -80,6 +84,7 @@ end:
        return file;
 }
 
+BT_HIDDEN
 int ctf_fs_file_open(struct ctf_fs_component *ctf_fs, struct ctf_fs_file *file,
                const char *mode)
 {
This page took 0.024921 seconds and 4 git commands to generate.