X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Fctf%2Fcommon%2Fnotif-iter%2Fnotif-iter.h;h=640bcf94855bab67c9fccd2f1084261433c3f618;hb=f42867e2d049c1e7cad50cd097290a3adef8d54c;hp=ff70730900bf66c78f374a4aaa48a8fed75962dc;hpb=f6ccaed94e575af57fe6bf38154771bee4871a2a;p=babeltrace.git diff --git a/plugins/ctf/common/notif-iter/notif-iter.h b/plugins/ctf/common/notif-iter/notif-iter.h index ff707309..640bcf94 100644 --- a/plugins/ctf/common/notif-iter/notif-iter.h +++ b/plugins/ctf/common/notif-iter/notif-iter.h @@ -355,6 +355,15 @@ BT_HIDDEN off_t bt_notif_iter_get_current_packet_size( struct bt_notif_iter *notit); +/* + * Resets the iterator so that the next requested medium bytes are + * assumed to be the first bytes of a new stream. The first notification + * which this iterator emits after calling bt_notif_iter_reset() is a + * BT_NOTIFICATION_TYPE_STREAM_BEGIN one. + */ +BT_HIDDEN +void bt_notif_iter_reset(struct bt_notif_iter *notit); + static inline const char *bt_notif_iter_medium_status_string( enum bt_notif_iter_medium_status status)