projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set private port's user data on creation
[babeltrace.git]
/
plugins
/
ctf
/
fs
/
fs.c
diff --git
a/plugins/ctf/fs/fs.c
b/plugins/ctf/fs/fs.c
index e734a1e1fde604187e2c49ebfa84911b31a35334..669d2daa906d259dd586be96dcd6963cc46da524 100644
(file)
--- a/
plugins/ctf/fs/fs.c
+++ b/
plugins/ctf/fs/fs.c
@@
-189,12
+189,6
@@
int create_one_port(struct ctf_fs_component *ctf_fs,
port_name->str, stream_path);
/* Create output port for this file */
port_name->str, stream_path);
/* Create output port for this file */
- port = bt_private_component_source_add_output_private_port(
- ctf_fs->priv_comp, port_name->str);
- if (!port) {
- goto error;
- }
-
port_data = g_new0(struct ctf_fs_port_data, 1);
if (!port_data) {
goto error;
port_data = g_new0(struct ctf_fs_port_data, 1);
if (!port_data) {
goto error;
@@
-205,8
+199,9
@@
int create_one_port(struct ctf_fs_component *ctf_fs,
goto error;
}
goto error;
}
- ret = bt_private_port_set_user_data(port, port_data);
- if (ret) {
+ port = bt_private_component_source_add_output_private_port(
+ ctf_fs->priv_comp, port_name->str, port_data);
+ if (!port) {
goto error;
}
goto error;
}
This page took
0.022603 seconds
and
4
git commands to generate.