libsysprof-profile: add writer as record parameter

This commit is contained in:
Christian Hergert
2023-05-25 17:17:04 -07:00
parent 9498d15170
commit a8fbb645d0
2 changed files with 7 additions and 4 deletions

View File

@ -100,14 +100,16 @@ sysprof_profiler_add_instrument (SysprofProfiler *self,
}
void
sysprof_profiler_record_async (SysprofProfiler *self,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
sysprof_profiler_record_async (SysprofProfiler *self,
SysprofCaptureWriter *writer,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
{
g_autoptr(GTask) task = NULL;
g_return_if_fail (SYSPROF_IS_PROFILER (self));
g_return_if_fail (writer != NULL);
g_return_if_fail (!cancellable || G_IS_CANCELLABLE (cancellable));
task = g_task_new (self, cancellable, callback, user_data);

View File

@ -41,6 +41,7 @@ void sysprof_profiler_add_instrument (SysprofProfiler *self,
SysprofInstrument *instrument);
SYSPROF_AVAILABLE_IN_ALL
void sysprof_profiler_record_async (SysprofProfiler *self,
SysprofCaptureWriter *writer,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data);