projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: add lib missing includes
[babeltrace.git]
/
lib
/
iterator.c
diff --git
a/lib/iterator.c
b/lib/iterator.c
index d595e7617a82b4998d3bf82c6cd14eb098711520..2cb40cbc5b166a4e4884c58f4d52e817a7a7e8a0 100644
(file)
--- a/
lib/iterator.c
+++ b/
lib/iterator.c
@@
-116,7
+116,7
@@
static int seek_file_stream_by_timestamp(struct ctf_file_stream *cfs,
continue;
stream_pos->cur_index = i;
continue;
stream_pos->cur_index = i;
- stream_pos->
move_pos_slow
(&stream_pos->parent,
+ stream_pos->
packet_seek
(&stream_pos->parent,
index->offset, SEEK_SET);
while (cfs->parent.timestamp < timestamp) {
ret = stream_read_event(cfs);
index->offset, SEEK_SET);
while (cfs->parent.timestamp < timestamp) {
ret = stream_read_event(cfs);
@@
-204,12
+204,12
@@
int bt_iter_set_pos(struct bt_iter *iter, const struct bt_iter_pos *iter_pos)
saved_pos->cur_index);
stream_pos->cur_index = saved_pos->cur_index;
saved_pos->cur_index);
stream_pos->cur_index = saved_pos->cur_index;
- stream_pos->
move_pos_slow
(&stream_pos->parent,
+ stream_pos->
packet_seek
(&stream_pos->parent,
index->offset, SEEK_SET);
/*
* the timestamp needs to be restored after
index->offset, SEEK_SET);
/*
* the timestamp needs to be restored after
- *
move_pos_slow
, because this function resets
+ *
packet_seek
, because this function resets
* the timestamp to the beginning of the packet
*/
stream->timestamp = saved_pos->current_timestamp;
* the timestamp to the beginning of the packet
*/
stream->timestamp = saved_pos->current_timestamp;
@@
-387,7
+387,7
@@
static int babeltrace_filestream_seek(struct ctf_file_stream *file_stream,
*/
break;
case BT_SEEK_BEGIN:
*/
break;
case BT_SEEK_BEGIN:
- file_stream->pos.
move_pos_slow
(&file_stream->pos.parent,
+ file_stream->pos.
packet_seek
(&file_stream->pos.parent,
0, SEEK_SET);
ret = stream_read_event(file_stream);
break;
0, SEEK_SET);
ret = stream_read_event(file_stream);
break;
This page took
0.02338 seconds
and
4
git commands to generate.