src.ctf.fs: make ctf_fs_make_port_name return a GCharUP
[babeltrace.git] / src / plugins / ctf / fs-src / fs.hpp
index 405bb145c6e8fb4792c73588f3cd660e7294f483..54a8ec0234df248c846f992f111c684c8c0d9cb9 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <babeltrace2/babeltrace.h>
 
+#include "cpp-common/bt2c/glib-up.hpp"
 #include "cpp-common/bt2c/logging.hpp"
 
 #include "metadata.hpp"
@@ -281,10 +282,8 @@ bool read_src_fs_parameters(const bt_value *params, const bt_value **paths,
 
 /*
  * Generate the port name to be used for a given data stream file group.
- *
- * The result must be freed using g_free by the caller.
  */
 
-gchar *ctf_fs_make_port_name(struct ctf_fs_ds_file_group *ds_file_group);
+bt2c::GCharUP ctf_fs_make_port_name(struct ctf_fs_ds_file_group *ds_file_group);
 
 #endif /* BABELTRACE_PLUGIN_CTF_FS_H */
This page took 0.027151 seconds and 4 git commands to generate.