libsysprof-capture: add file reader helper

This commit is contained in:
Christian Hergert
2019-05-27 15:59:05 -07:00
parent 336dae4d1f
commit 596d29496d
3 changed files with 81 additions and 0 deletions

View File

@ -99,6 +99,10 @@ void sysprof_capture_reader_set_stat
const SysprofCaptureStat *st_buf);
SYSPROF_AVAILABLE_IN_ALL
gchar **sysprof_capture_reader_list_files (SysprofCaptureReader *self);
SYSPROF_AVAILABLE_IN_ALL
gboolean sysprof_capture_reader_read_file_fd (SysprofCaptureReader *self,
const gchar *path,
gint fd);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (SysprofCaptureReader, sysprof_capture_reader_unref)