capture: add sp_capture_reader_peek_frame()

It can be useful to peek at the whole frame header (for things like time
or pid or cpu).
This commit is contained in:
Christian Hergert
2016-04-15 04:48:46 -07:00
parent ad5f855a2b
commit 253b387323
2 changed files with 27 additions and 9 deletions

View File

@ -37,6 +37,8 @@ gint64 sp_capture_reader_get_start_time (SpCapt
gboolean sp_capture_reader_skip (SpCaptureReader *self);
gboolean sp_capture_reader_peek_type (SpCaptureReader *self,
SpCaptureFrameType *type);
gboolean sp_capture_reader_peek_frame (SpCaptureReader *self,
SpCaptureFrame *frame);
const SpCaptureMap *sp_capture_reader_read_map (SpCaptureReader *self);
const SpCaptureExit *sp_capture_reader_read_exit (SpCaptureReader *self);
const SpCaptureFork *sp_capture_reader_read_fork (SpCaptureReader *self);