libsysprof-capture: add raw frame helper

This helps when shuffling data between sources so that you can simply
memcpy() into the destination buffer.
This commit is contained in:
Christian Hergert
2020-02-13 14:29:10 -08:00
parent 1d44282edb
commit 6cb55f4d71
2 changed files with 30 additions and 0 deletions

View File

@ -237,6 +237,9 @@ gboolean sysprof_capture_writer_cat (Sy
SysprofCaptureReader *reader,
GError **error);
G_GNUC_INTERNAL
gboolean _sysprof_capture_writer_add_raw (SysprofCaptureWriter *self,
const SysprofCaptureFrame *frame);
G_GNUC_INTERNAL
gboolean _sysprof_capture_writer_splice_from_fd (SysprofCaptureWriter *self,
int fd,
GError **error) G_GNUC_INTERNAL;