From 7c98f782c04e13ca50d780a90bb70c88f2a4ac1e Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 26 May 2023 17:07:16 -0700 Subject: [PATCH] libsysprof-profile: add getter for capture writer --- src/libsysprof-profile/sysprof-recording.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/libsysprof-profile/sysprof-recording.c b/src/libsysprof-profile/sysprof-recording.c index 5ebb4c56..1dc4885d 100644 --- a/src/libsysprof-profile/sysprof-recording.c +++ b/src/libsysprof-profile/sysprof-recording.c @@ -288,3 +288,11 @@ _sysprof_recording_get_spawnable (SysprofRecording *self) return self->spawnable; } + +SysprofCaptureWriter * +_sysprof_recording_writer (SysprofRecording *self) +{ + g_return_val_if_fail (SYSPROF_IS_RECORDING (self), NULL); + + return self->writer; +}