reader: add sp_capture_reader_copy()

This function allows copying a capture so that we can do
additional reads. This does, however, copy the buffers which
might be more memory than we want for large usage. We can
tweak things as we go to figure out the cursors.
This commit is contained in:
Christian Hergert
2016-09-25 00:23:28 -07:00
parent 99ff8f2a5c
commit b8f465659b
2 changed files with 36 additions and 0 deletions

View File

@ -29,6 +29,7 @@ SpCaptureReader *sp_capture_reader_new (const
GError **error);
SpCaptureReader *sp_capture_reader_new_from_fd (int fd,
GError **error);
SpCaptureReader *sp_capture_reader_copy (SpCaptureReader *self);
SpCaptureReader *sp_capture_reader_ref (SpCaptureReader *self);
void sp_capture_reader_unref (SpCaptureReader *self);
const gchar *sp_capture_reader_get_filename (SpCaptureReader *self);