X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=plugins%2Fctf%2Ffs-src%2Fquery.c;h=6f2017b20688147e52806b96727bc9d011a4026a;hp=dd14336667784c9a77bd668402be0c7e5b296159;hb=40f4ba76dd6f9508ca51b6220eaed57632281a07;hpb=05e2128659970c32648a01255ed870449f05d518 diff --git a/plugins/ctf/fs-src/query.c b/plugins/ctf/fs-src/query.c index dd143366..6f2017b2 100644 --- a/plugins/ctf/fs-src/query.c +++ b/plugins/ctf/fs-src/query.c @@ -226,12 +226,12 @@ end: } static -int add_stream_ids(struct bt_value *info, struct bt_stream *stream) +int add_stream_ids(struct bt_value *info, const struct bt_stream *stream) { int ret = 0; int64_t stream_class_id, stream_instance_id; enum bt_value_status status; - struct bt_stream_class *stream_class = NULL; + const struct bt_stream_class *stream_class = NULL; stream_instance_id = bt_stream_get_id(stream); if (stream_instance_id != -1) { @@ -243,7 +243,7 @@ int add_stream_ids(struct bt_value *info, struct bt_stream *stream) } } - stream_class = bt_stream_borrow_class(stream); + stream_class = bt_stream_borrow_class_const(stream); if (!stream_class) { ret = -1; goto end; @@ -331,8 +331,7 @@ int populate_stream_info(struct ctf_fs_ds_file_group *group, goto end; } - ret = add_stream_ids(group_info, - bt_private_stream_as_stream(group->stream)); + ret = add_stream_ids(group_info, group->stream); if (ret) { goto end; }